Windows Develop Bookmark and Share   
 index > Windows Forms General > How can I make the courser ready inside the list Box?
 

How can I make the courser ready inside the list Box?

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!
DeborahK  Thursday, September 24, 2009 12:25 AM
empNumBox->Focus(). Better yet, set the TabIndex properties correctly.

Hans Passant.
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!
DeborahK  Thursday, September 24, 2009 12:25 AM
empNumBox->Focus(). Better yet, set the TabIndex properties correctly.

Hans Passant.
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.
Aland Li  Thursday, September 24, 2009 8:55 AM

You can use google to search for other answers

Custom Search

More Threads

• C# 3.0 - How to know if external resource text file has changed in order to update my Multilingual app
• zoom+C#
• TextBox Input
• What control are used in Visual Studio 2008 installation interface?
• Invoke
• Floating Toolbars
• RichTextBox + Shadowed font
• Notifying a form control when a object signals an event
• Populating controls from a ListView
• Make setup program create folders?