how to fix a menustrip ?
-
Hi ! I'm using Visual Studio 2005 Professional Edition and C#. I have a simple question: I want to add to my form, which is a scrollable control, a menustrip and statusstrip. The problem is that the menustrip is not fixed at top if i scroll down. A similar problem exists also for the statusstrip. If i open the program it is only visible if i scroll down. The program thinks that the menustrip and the statusstrip are in the Client region, to which i want to draw something. So, how can I fix them, so that they are not get lost if i scroll the main form up or down ? -- Schwammkopf PS: The AutoScrollMinSize is set to (ClientSize.Width + 50, ClientSize.Height + 50). Of course, on each OnPaint i update it.
-
Hi ! I'm using Visual Studio 2005 Professional Edition and C#. I have a simple question: I want to add to my form, which is a scrollable control, a menustrip and statusstrip. The problem is that the menustrip is not fixed at top if i scroll down. A similar problem exists also for the statusstrip. If i open the program it is only visible if i scroll down. The program thinks that the menustrip and the statusstrip are in the Client region, to which i want to draw something. So, how can I fix them, so that they are not get lost if i scroll the main form up or down ? -- Schwammkopf PS: The AutoScrollMinSize is set to (ClientSize.Width + 50, ClientSize.Height + 50). Of course, on each OnPaint i update it.
In your form you should put a ToolStripContainer, with your MenuStrip at the top and your StatusStrip at the bottom. Then you add your scrollable control in the middle/center of this ToolStripContainer.
Internet - the worlds biggest dictionary
-
In your form you should put a ToolStripContainer, with your MenuStrip at the top and your StatusStrip at the bottom. Then you add your scrollable control in the middle/center of this ToolStripContainer.
Internet - the worlds biggest dictionary
well, the problem is that my main form is a scrollable control. and i can put it in the container. besides, how is possible to let the container take the size of the main form if someone resize the mainform ?
-
well, the problem is that my main form is a scrollable control. and i can put it in the container. besides, how is possible to let the container take the size of the main form if someone resize the mainform ?
I suppose you have to change it then? Instead of creating a scrollable form, you create a scrollable UserControl, which you can put in any container.
Internet - the worlds biggest dictionary