Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set Focus inside the text box of a tool strip

Tags:

c#

winforms

I put a toolstrip on the form, added some controls to it such as buttons, labels and a text box...now I want the text input focus be inside abd blinking in the text box of that toolstrip,

I tried with these two commands in a form_load evet but didn't work:

toolStripTextBox1.Focus();
// or
toolStripTextBox1.Select();
like image 581
Bohn Avatar asked Nov 16 '25 14:11

Bohn


1 Answers

Have you tried doing the following

Me.ActiveControl = toolStripTextBox1.Control
like image 137
MethodMan Avatar answered Nov 19 '25 03:11

MethodMan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!