How to resize TextBox Element

6 posts, 0 answers
  1. Amanda
    Amanda avatar
    173 posts
    Member since:
    Sep 2007

    Posted 08 May 2007 Link to this post

    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
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 09 May 2007 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Amanda
    Amanda avatar
    173 posts
    Member since:
    Sep 2007

    Posted 09 May 2007 Link to this post

    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.

  5. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 09 May 2007 Link to this post

    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
  6. Amanda
    Amanda avatar
    173 posts
    Member since:
    Sep 2007

    Posted 09 May 2007 Link to this post

    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
  7. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 09 May 2007 Link to this post

    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready