If you use just AnchorStyles.Right, the "TextBox" will move more to right if user resizes the window, using left+right will resize the textbox as well
2009/10/8 Faraz Azhar <[email protected]> > > Hmm.. thanks for doing this research for me. > > Lets me start a new project from fresh. I create a new project in VB > 2008 Express. Add a form. And place Toolstrip control on it. Then I > add a button on it, a text box and then another button... ie. 3 > controls are there on the Toolstrip. > > I also set the Toolstrip's Dock to Top, so it stretches from left to > right at the top. Now I add the following in my form's Load event: > > ToolStripTextBox1.TextBox.Anchor = AnchorStyles.Right > > Ok, now i run the project... still the same ! Nothing changed. What > now? >
