how to change toolstrip item's size

2 posts, 1 answers
  1. codicezerouno
    codicezerouno avatar
    22 posts
    Member since:
    Feb 2009

    Posted 26 Mar 2010 Link to this post

    Simply, I need to make a toolstrip with large imagebuttons, for example 30x30, and I need to have more space between buttons.

    How to do it? Thank you.

    Stefano.

  2. Answer
    Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 31 Mar 2010 Link to this post

    Hi Stefano Cadò,

    Thank you for writing.

    Actually, by default, the RadToolStrip items set their size according to their content. So, if you have an image button element with 30x30 image, RadToolStrip will increase its size to handle the bigger bitmap. If you want to put some additional space between the button elements you can use Padding property. And if you prefer to set some fixed minimal size you can do it through ToolStrip item's MinSize property:
    this.radToolStripItem1.MinSize = new Size(0, 50);
    this.radImageButtonElement1.Padding = new Padding(5);

    I hope this helps, let me know if you have any other questions.

    Regards,
    Martin Vasilev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top