Upon the load of my form, I would like the cursor to be in a textbox within a toolstrip. Does anyone know if this is possibe? I've tried putting the following code in both the Form_Activate and Form_Load events: ToolStripTextBox1.Focus() ToolStripTextBox1.Select() ToolStripTextBox1.SelactAll() None of these cause an error, but none of them work. Any ideas appreciated.
Most probably you need to activate and focus toolstrip itself before you can focus contained controls. Just a guess though "mfm" wrote in message news:2F46CD7A-464B-4CBF-913E-5EEFA19A068C@microsoft.com... > Upon the load of my form, I would like the cursor to be in a textbox > within a > toolstrip. Does anyone know if this is possibe? I've tried putting the > following code in both the Form_Activate and Form_Load events: > > ToolStripTextBox1.Focus() > ToolStripTextBox1.Select() > ToolStripTextBox1.SelactAll() > > None of these cause an error, but none of them work. Any ideas > appreciated. >