I have a list box ready to collect information from the users. I noticed that; every time the users need to enter something they have to use the mouse to set the course inside the box. How can I set the course ready inside the list box so that the user does not have to use the mouse evry time?
empNumBox->Text = " "; - Moved byKarel ZikmundMSFTWednesday, September 23, 2009 4:31 AMWinForms question (From:.NET Framework 4 Beta 1 �General)
-
| | Allen_Press Wednesday, September 23, 2009 12:49 AM | Try setting the Focus to the list box. Hope this helps. www.insteptech.com ;
msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS! - Marked As Answer bynobugzMVP, ModeratorSaturday, September 26, 2009 1:15 AM
- Proposed As Answer byAland LiMSFT, ModeratorThursday, September 24, 2009 8:55 AM
-
| | DeborahK Thursday, September 24, 2009 12:25 AM | empNumBox->Focus(). Better yet, set the TabIndex properties correctly.
Hans Passant.- Marked As Answer bynobugzMVP, ModeratorSaturday, September 26, 2009 1:15 AM
- Proposed As Answer byAland LiMSFT, ModeratorThursday, September 24, 2009 8:55 AM
-
| | nobugz Thursday, September 24, 2009 2:05 AM | Try setting the Focus to the list box. Hope this helps. www.insteptech.com ;
msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS! - Marked As Answer bynobugzMVP, ModeratorSaturday, September 26, 2009 1:15 AM
- Proposed As Answer byAland LiMSFT, ModeratorThursday, September 24, 2009 8:55 AM
-
| | DeborahK Thursday, September 24, 2009 12:25 AM | empNumBox->Focus(). Better yet, set the TabIndex properties correctly.
Hans Passant.- Marked As Answer bynobugzMVP, ModeratorSaturday, September 26, 2009 1:15 AM
- Proposed As Answer byAland LiMSFT, ModeratorThursday, September 24, 2009 8:55 AM
-
| | nobugz Thursday, September 24, 2009 2:05 AM | Hi Deborahk,
Thanks for reply. I hope if you give more details. | | Allen_Press Thursday, September 24, 2009 2:06 AM | Hi Allen_Press,
Please follow nobugz's suggestions: 1. Call the Focus method of the ListBox in the Load event handler of the form. 2. Set the TabIndex of the ListBox to 0 and make sure the TabIndexes of other controls are larger than 0.
Regards, Aland Li Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.- Unmarked As Answer bynobugzMVP, ModeratorSaturday, September 26, 2009 1:15 AM
- Marked As Answer byAllen_Press Saturday, September 26, 2009 12:40 AM
-
| | Aland Li Thursday, September 24, 2009 8:55 AM |
|