Results 1 to 2 of 2

Thread: How do you bring a control on top of another control?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    121

    How do you bring a control on top of another control?

    How do you bring a control on top of another control? [design time]

    Say you have two controls
    Control A and
    Control B


    Assuming that you draw control A first and control B second.
    Control B will always be on top of control A.
    How do I bring control A so that it is on top of B?

    I tried setting tabstop at 0 but this did not work...

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How do you bring a control on top of another control?

    You call the BringToFront or SendToBack methods to manipulate the z-order. You can do the same thing at design time by right-clicking and selecting the appropriate menu item.
    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
  •  



Click Here to Expand Forum to Full Width