how to make a textbox with inputs are on the button

Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2007
Posts: 40
Reputation: rapperhuj is an unknown quantity at this point 
Solved Threads: 0
rapperhuj rapperhuj is offline Offline
Light Poster

how to make a textbox with inputs are on the button

 
0
  #1
Mar 5th, 2008
hi,
how to make a textbox with inputs are on the button.?
then the textbox will accept all the input buttons chars.
example..
i hve an alphatical buttons from A to Z.. i want that the user will input on the textbox by means of buttons not on manually type.. so how the textbox will provide all the spaces to enters all the value char. of the buttons.?

pls.. give me some idea or examples.. dealing with this problem.. thnks guys..
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: how to make a textbox with inputs are on the button

 
0
  #2
Mar 5th, 2008
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 65
Reputation: SolTec is an unknown quantity at this point 
Solved Threads: 4
SolTec SolTec is offline Offline
Junior Poster in Training

Re: how to make a textbox with inputs are on the button

 
0
  #3
Mar 5th, 2008
Originally Posted by rapperhuj View Post
hi,
how to make a textbox with inputs are on the button.?
then the textbox will accept all the input buttons chars.
example..
i hve an alphatical buttons from A to Z.. i want that the user will input on the textbox by means of buttons not on manually type.. so how the textbox will provide all the spaces to enters all the value char. of the buttons.?

pls.. give me some idea or examples.. dealing with this problem.. thnks guys..
disable the keyboard keydown event by capturing all keydown event and a messagebox to tell the user to use the mouse. Then in the mousedown event, capture with either if then else or case select, the mouse down event and focus on the textbox and add each letter with the txtName.text = txtName.text & strButton.text

This will insure only the mouse will be used to input your text.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2
Reputation: samichou6 is an unknown quantity at this point 
Solved Threads: 0
samichou6 samichou6 is offline Offline
Newbie Poster

Re: how to make a textbox with inputs are on the button

 
0
  #4
Mar 5th, 2008
what you have to do is to disable the entry of any key by writing e.Handled = True in the keypress event of the textbox1 and in the click event of the button textbox1.text = textbox1.text & button1.text
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum


Views: 1128 | Replies: 3
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC