How do I make it fill 100% of width?

3 posts, 1 answers
  1. Jason Maronge
    Jason Maronge avatar
    322 posts
    Member since:
    Jan 2005

    Posted 15 Nov 2010 Link to this post

    Is there a way to make the command bar fill 100% of the width of its parent container?  I have only 3 items in it but would like to have the bar fill the whole width of my form.

    Thanks,

    Jason
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 16 Nov 2010 Link to this post

    Hi Jason,

    You can do this by setting the property below for the CommandBarStripElement you wish to stretch over the width of the screen.

    Hope that helps
    Richard
    CommandBarStripElement1.StretchHorizontally = True
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jason Maronge
    Jason Maronge avatar
    322 posts
    Member since:
    Jan 2005

    Posted 16 Nov 2010 Link to this post

    Thanks that worked.  I thought I had tried that before, guess not.  Thanks again.
Back to Top