954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to make a textbox with inputs are on the button

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..

rapperhuj
Light Poster
40 posts since Apr 2007
Reputation Points: 7
Solved Threads: 0
 
Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
 

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.

SolTec
Junior Poster in Training
67 posts since Jan 2008
Reputation Points: 10
Solved Threads: 4
 

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

samichou6
Newbie Poster
2 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You