locked
ToolStripTextBox and Focus RRS feed

  • Question

  • Anyone here know how to get focus into a ToolStripTextBox when a form first loads? Right now, ToolStripTextBox.Focus() does not do this. Any ideas?

    Thanks.

    Monday, April 17, 2006 8:41 PM

Answers

  • If you put the ToolStripTextBox.Focus() in the Shown event of the form it should work.
    Thursday, April 20, 2006 8:09 PM

All replies

  • If you put the ToolStripTextBox.Focus() in the Shown event of the form it should work.
    Thursday, April 20, 2006 8:09 PM
  • You need to set the ToolStrip's (not the ToolStripTextBox's - it doesn't have the property) TabStop property to True.

    • Proposed as answer by ShadowXVII Saturday, March 14, 2009 9:54 AM
    Monday, April 21, 2008 4:11 PM
  • Thanks, I shall give a go.
    Saturday, March 31, 2012 9:11 AM
  • That worked, many thanks
    Monday, April 2, 2012 7:50 AM