Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Toolstrip (obsolete as of Q3 2010) > how to change toolstrip item's size

Answered how to change toolstrip item's size

Feed from this thread
  • Stefano Cadò avatar

    Posted on Mar 26, 2010 (permalink)

    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.

    Reply

  • Answer Martin Vasilev Martin Vasilev admin's avatar

    Posted on Mar 31, 2010 (permalink)

    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.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Toolstrip (obsolete as of Q3 2010) > how to change toolstrip item's size
Related resources for "how to change toolstrip item's size"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]