Yes "Anchor" works perfectly well for a normal control but we are talking about the controls inside the ToolStrip.
On Fri, Oct 9, 2009 at 4:21 PM, Processor Devil <[email protected]>wrote: > Well, I am using anchorns left+right, left+top+right, bottom+right etc for > ages and it works fine :) > > 2009/10/9 Arsalan Tamiz <[email protected]> > > I don't think this will help. >> The simple option is that, each time the window is >> resized, manually calculate the width of TextBox. >> >> Regards, >> Arsalan Tamiz >> >> On Fri, Oct 9, 2009 at 2:45 PM, Processor Devil < >> [email protected]> wrote: >> >>> 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? >>>> >>> >>> >> >
