dcsimg
Results 1 to 5 of 5

Thread: Control Layers

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2012
    Posts
    391

    Control Layers

    I'm in VS 2015, how can I adjust control layers, It's doing my head in.

    I have two panels, I want them to be separate and that the same level, currently one is inside the other.

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    100,656

    Re: Control Layers

    Presumably you are talking about a Windows Forms app. Best to be specific and not assume that we'll get that, given that so many terms can apply to multiple scenarios.

    I'm guessing that what you did was open the Toolbox and double-click the Panel control twice to add two of them to your form. In that case, after adding the first one, it would be selected in your form. Any control you then add by double-clicking would be added to it rather than to the form. All you had to do was click the form after adding the first Panel and then the next control would be added to the form.

    It may also be that you dragged the second Panel and dropped it on the first. In that case, the second Panel would be dropped IN the first Panel and there's no way to avoid that. If you want the second Panel dropped on the form then you have to actually drop it ON the form. If you want the Panels to overlap then you can set the Size and/or Location in the Properties window.

    Now that you have one Panel inside the other, you have a couple of options. Firstly, you can drag the inner Panel out of the outer and drop it on the form, then resize and/or relocate as I described above. Alternatively, you can use the Document Outline window to control z-order and nesting of controls.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2012
    Posts
    391

    Re: Control Layers

    Oh I'm after the Document Outline window, CTRL + ALT + T normally works. It's not in Visual Studio 2015. Should it be available?

  4. #4
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    100,656

    Re: Control Layers

    You can open any window from the main menu and the menu item should tell you what the keyboard shortcut is, if there is one. In VS 2015 for me, Ctrl+Alt+T is mapped to something else. You can presumably change those mappings somewhere, although I haven't looked to find out where exactly.
    Last edited by jmcilhinney; Feb 22nd, 2018 at 09:17 PM.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    100,656

    Re: Control Layers

    Quote Originally Posted by jmcilhinney View Post
    You can presumably change those mappings somewhere, although I haven't looked to find out where exactly.
    It's under Environment>Keyboard in the IDE Options dialogue.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width