Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how to fix a menustrip ?

how to fix a menustrip ?

Scheduled Pinned Locked Moved C#
questioncsharphelpvisual-studiotutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    test123450
    wrote on last edited by
    #1

    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.

    S 1 Reply Last reply
    0
    • T test123450

      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.

      S Offline
      S Offline
      ShermansLagoon
      wrote on last edited by
      #2

      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

      T 1 Reply Last reply
      0
      • S ShermansLagoon

        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

        T Offline
        T Offline
        test123450
        wrote on last edited by
        #3

        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 ?

        S 1 Reply Last reply
        0
        • T test123450

          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 ?

          S Offline
          S Offline
          ShermansLagoon
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups