Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Toolstrip with a textbox. How can I tab into it?

Status
Not open for further replies.

RotorTorque

Programmer
Apr 29, 2007
100
US
Hi all,
I have a toolstip control in my VB2005 application. I have added a textbox to the toolstrip. I want the user's to be able to tab into this textbox when they tab through the various controls in the form. How can I do this?

Thanks in advance,
RotorTorque :)
 
As far as I know you would have to do this manually. I would suggest doing using the KeyDown/KeyUp event for the textbox on the toolstrip and if it is the tab key set the focus to the control you want to be next in line. Like wise if the shift is held with the tab key then set the focus to the preceding control.

-I hate Microsoft!
-Forever and always forward.
 
Oh and you would need to override the behavior of the textboxes before and after of course.

-I hate Microsoft!
-Forever and always forward.
 
Thank you Sorwen,

Do you know how to modify the Border in a ToolStrip control?

Thanks once again.

RotorTorque :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top