Set theActiveControl
property of the form and you should be fine.
this.ActiveControl = yourtextboxname;
More Related Contents:
- Panel not getting focus
- How to remove the focus from a TextBox in WinForms?
- How to set Z-order of a Control using WinForms
- How to set/change/remove focus style on a Button in C#?
- How to change listview selected row backcolor even when focus on another control?
- How to disable navigation on WinForm with arrows in C#?
- Implementing INotifyPropertyChanged – does a better way exist?
- Color different parts of a RichTextBox string
- The maximum number of characters a TextBox can display
- Accessing UI Control from BackgroundWorker Thread
- Winforms: Application.Exit vs Environment.Exit vs Form.Close
- Creating Custom Picturebox with Draggable and Resizable Selection Window
- Passing data between WinForms forms [duplicate]
- modifying the registry key value
- Panel for drawing graphics and scrolling
- How to print a text file on thermal printer using PrintDocument?
- Is there a quick way to get the control that’s under the mouse?
- How do I ensure a form displays on the “additional” monitor in a dual monitor scenario? [duplicate]
- How to disable creation of empty log file on app start?
- insert item in combobox after binding it from a Dataset in c#
- Refresh button – Refreshing data grid view after inserting, deleting, updating
- How to create vertical navigation bar in Windows Forms?
- Why controls do not want to get removed?
- Make a BackgroundWorker do several operations sequentially without freezing the form
- How to get the size of an inherited form in the base form?
- How do I clear a combobox?
- How to create a form with a border, but no title bar? (like volume control on Windows 7)
- Best practices for multi-form applications to show and hide forms? [closed]
- Display multiple forms when C# application starts
- What does “Beta: Use Unicode UTF-8 for worldwide language support” actually do?