Creating control 'Layers' in vb.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alcestis
    New Member
    • Aug 2007
    • 13

    Creating control 'Layers' in vb.net

    Hi...i was wondering if i could have any help or ideas on creating control layers in vb.net. By this i mean being able to set a control as 'Layer3' and that control being above all controls on layers one and two.

    Any help would be great!
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Last control added will be considered "above"
    With that in mind.
    You could create a panel, add all controls you want to it, set it's background to invisible, and you could consider that a "layer"

    Repeat for as many "layers" as you want, then add them to the Form's controls in the correct order.


    Allthough I would say overlapping controls makes for a fairly poor UI, in my opinion.

    Comment

    • Alcestis
      New Member
      • Aug 2007
      • 13

      #3
      It sounds obvious when you put it like that, thank you!

      Don't worry about the UI...the program sort of allows users to make their own UIs for a different program. Layers are needed in case they want to put a label on top of an image and so on.

      Comment

      Working...