943,699 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1432
  • VB.NET RSS
Mar 5th, 2008
0

how to make a textbox with inputs are on the button

Expand 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..
Similar Threads
Reputation Points: 7
Solved Threads: 0
Light Poster
rapperhuj is offline Offline
40 posts
since Apr 2007
Mar 5th, 2008
0

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

Reputation Points: 1182
Solved Threads: 392
Posting Sensei
Jx_Man is offline Offline
3,138 posts
since Nov 2007
Mar 5th, 2008
0

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

Click to Expand / Collapse  Quote originally posted by rapperhuj ...
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.
Reputation Points: 10
Solved Threads: 4
Junior Poster in Training
SolTec is offline Offline
65 posts
since Jan 2008
Mar 5th, 2008
0

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

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
samichou6 is offline Offline
2 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Sending and receiving mouse and keyboard events
Next Thread in VB.NET Forum Timeline: Limit Text box input





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC