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. Docking Dilemma

Docking Dilemma

Scheduled Pinned Locked Moved C#
announcementc++htmlcomdocker
7 Posts 3 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.
  • G Offline
    G Offline
    gUrM33T
    wrote on last edited by
    #1

    Hi guys, I've two panels on my WinForm, one is docked to the left of the container and the other at the bottom. Assume that there are no more controls on the form. Now sometimes these panels are docked to the container (i.e. a WinForm) as

    +-----------+
    | |
    | panelLeft +----------------------+
    | | panelBottom |
    +-----------+----------------------+

    and sometimes as

    +-----------+
    | |
    | panelLeft |
    | |
    +-----------+----------------------+
    | panelBottom |
    +----------------------------------+

    I want to know why? Isn't there any way of making it sure as how these Panels will be docked in RELEASE version. Plz do reply, Gurmeet


    BTW, can Google help me search my lost pajamas?

    My Articles: HTML Reader C++ Class Library, Numeric Edit Control

    M 1 Reply Last reply
    0
    • G gUrM33T

      Hi guys, I've two panels on my WinForm, one is docked to the left of the container and the other at the bottom. Assume that there are no more controls on the form. Now sometimes these panels are docked to the container (i.e. a WinForm) as

      +-----------+
      | |
      | panelLeft +----------------------+
      | | panelBottom |
      +-----------+----------------------+

      and sometimes as

      +-----------+
      | |
      | panelLeft |
      | |
      +-----------+----------------------+
      | panelBottom |
      +----------------------------------+

      I want to know why? Isn't there any way of making it sure as how these Panels will be docked in RELEASE version. Plz do reply, Gurmeet


      BTW, can Google help me search my lost pajamas?

      My Articles: HTML Reader C++ Class Library, Numeric Edit Control

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      I think you have to go to your InitializeComponent() and at the end of it see which one added to Control propoerty of your form. Mazy
      "One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji

      G 1 Reply Last reply
      0
      • M Mazdak

        I think you have to go to your InitializeComponent() and at the end of it see which one added to Control propoerty of your form. Mazy
        "One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji

        G Offline
        G Offline
        gUrM33T
        wrote on last edited by
        #3

        Both of those panel controls are being added to the Controls property of the form in InitializeComponent(). Whatz the point by the way? Gurmeet


        BTW, can Google help me search my lost pajamas?

        My Articles: HTML Reader C++ Class Library, Numeric Edit Control

        M H 2 Replies Last reply
        0
        • G gUrM33T

          Both of those panel controls are being added to the Controls property of the form in InitializeComponent(). Whatz the point by the way? Gurmeet


          BTW, can Google help me search my lost pajamas?

          My Articles: HTML Reader C++ Class Library, Numeric Edit Control

          M Offline
          M Offline
          Mazdak
          wrote on last edited by
          #4

          Gurmeet S. Kochar wrote: Both of those panel controls are being added to the Controls property of the form in InitializeComponent(). Whatz the point by the way? I know both added. I mean which one first added and which one is second. This will show which one is at the top of other one. Mazy
          "One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji

          1 Reply Last reply
          0
          • G gUrM33T

            Both of those panel controls are being added to the Controls property of the form in InitializeComponent(). Whatz the point by the way? Gurmeet


            BTW, can Google help me search my lost pajamas?

            My Articles: HTML Reader C++ Class Library, Numeric Edit Control

            H Offline
            H Offline
            Heath Stewart
            wrote on last edited by
            #5

            Adding to what Mazdak said, if you see Controls.AddRange the controls are actually added in reverse order from what you see listed, like:

            Controls.AddRange(new Control[]
            {
            myControl3,
            myControl2,
            myControl1
            });

            Microsoft MVP, Visual C# My Articles

            G 1 Reply Last reply
            0
            • H Heath Stewart

              Adding to what Mazdak said, if you see Controls.AddRange the controls are actually added in reverse order from what you see listed, like:

              Controls.AddRange(new Control[]
              {
              myControl3,
              myControl2,
              myControl1
              });

              Microsoft MVP, Visual C# My Articles

              G Offline
              G Offline
              gUrM33T
              wrote on last edited by
              #6

              Heath Stewart wrote: the controls are actually added in reverse order So what you are saying is that myControl1 will get added first, then myControl2 and then myControl3? How this all reverse order adding affects docking? Gurmeet


              BTW, can Google help me search my lost pajamas?

              My Articles: HTML Reader C++ Class Library, Numeric Edit Control

              H 1 Reply Last reply
              0
              • G gUrM33T

                Heath Stewart wrote: the controls are actually added in reverse order So what you are saying is that myControl1 will get added first, then myControl2 and then myControl3? How this all reverse order adding affects docking? Gurmeet


                BTW, can Google help me search my lost pajamas?

                My Articles: HTML Reader C++ Class Library, Numeric Edit Control

                H Offline
                H Offline
                Heath Stewart
                wrote on last edited by
                #7

                Yes. The docked controls are docked in relation to each other in the order in which they were added.

                Microsoft MVP, Visual C# My Articles

                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