main menu resizing problem

I have a program with a main menu that has 4 submenus in it. Depending on certain options that are chosen my app resizes itself. MY problem lies in the fact that with one option choice my window becomes too small and only the leftmost 3 of the 4 submenus can be seen/accessed. Without changing the size of my window is there any way to do something about this

Thanks



Answer this question

main menu resizing problem

  • AndrewBadera

    I tried that already, and its nice, cause it does flow. But the problem is that the flow causes it to go to the next line instead of just like adding something to be able to scroll. Anyone know if this is possible

    Thanks


  • Maria Welborn

    you could set Form.MinimumSize Property - Gets or sets the minimum size the form can be resized to.

    Thus you ensure your form's size cannot be smaller than set size

    Hope this helps



  • Shaantu

    That is one of the few solutions I thought of. But the size of my form is only changed in the application itself, not by the user. So I would rather not do this. I was just thinking if there was like a way to make a menu bar scrollable or whatever you wanna call it so if the form isnt big enough to show all items in the menu bar that you can scroll over to the extras
  • cgraus

    Although it is not very good for the user it is applicable in some cases.

    I think I just found what you mean - take a look at ToolStrip.LayoutStyle Property ,

    set it to Flow as here and this is it ;)

    this.menuStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;

    Hope this helps



  • main menu resizing problem