toolstriptextbox size with form?
well i want to make it so my toolstriptextbox will smoothly size with the form as i resize it. I tried using a timer and just say txtbox1.width = me.size.width - 100 or whatever space for the buttons and handling it for when it reaches negative numbers (with autosize off on the textbox) but its not at all smooth.
I want to be smooth like with Google Chrome. or Firefox...or IE. and that stuff.
Thanks.
Re: toolstriptextbox size with form?
You don't do this using code, but simply by setting the appropriate properties. Follow the CodeBank link in my signature and check out my Tabbed Web Browser thread. The address bar contains a combo box that behaves the way you want.
Re: toolstriptextbox size with form?
yes. but what is the appropreate property-
Re: toolstriptextbox size with form?
Actually, now that I think about it, you can't do it with items on a ToolStrip using just properties and, as such, I didn't in my Tabbed Web Browser. So, you do need code and that code can be found in that project of mine.
Re: toolstriptextbox size with form?
but if you resize fast...the textbox disapears....