This is a migrated thread and some comments may be shown as answers.

How to resize TextBox Element

5 Answers 237 Views
Toolstrip (obsolete as of Q3 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Amanda
Top achievements
Rank 2
Amanda asked on 08 May 2007, 08:15 PM
I added a textbox element to my toolstrip item.  I am trying to make the text box wider. In the design mode I finally figured out how to make it wider by turning AutoSize off, changing the width property and then going into the children and doing the same for the textbox item.  This all works good until I compile and run the application.  The textbox item properties reset themselves back to the default.  What am I missing?

Thanks, Mark

5 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 09 May 2007, 06:41 AM
Hello mmassey,

You could try to set the MinSize and MaxSize properties of the TextBox because I think that you will experience such a behavior if you have a MaxSize property already set to it.
I hope this helps.

Sincerely yours,
Ray
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Amanda
Top achievements
Rank 2
answered on 09 May 2007, 01:17 PM
I did set the min and max value, but as soon as I compile the project the values that I set change back to what they were. It will not save the settings I enter.

0
Boyko Markov
Telerik team
answered on 09 May 2007, 01:30 PM
Hi Mark Massey,

Could you try to set those two properties in run-time.
Possible solution is to handle the Load event of your Form and then set the MaxSize and MinSize properties of the TextBox there. I hope this helps.

Kind regards,
Ray
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Amanda
Top achievements
Rank 2
answered on 09 May 2007, 02:18 PM
That worked on form load to set the size, but now when I progrmically set the text property the visible property changes to hidden so I have to reset that to visable.

I have not had very good luck with the radtoolstrip controls. They are very unpredicable and hard to work with.

Thanks for your help
Mark
0
Boyko Markov
Telerik team
answered on 09 May 2007, 03:00 PM
Hi Mark Massey,

RadToolStrip has an internal behavior which automatically hides its items when there is no available space  for them.
When the item is a textbox it is hidden and placed in the overflow button of the RadToolStrip. When you click and open the OverFlowButton  the textbox appears inside the dropdown menu . If you experience more problems with RadToolStrip you could send me a sample project demonstrating the fault behavior and I will be able to give you a better help.


Kind regards,
Ray
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Toolstrip (obsolete as of Q3 2010)
Asked by
Amanda
Top achievements
Rank 2
Answers by
Boyko Markov
Telerik team
Amanda
Top achievements
Rank 2
Share this question
or