Results 1 to 7 of 7

Thread: Slide Out Panel Control

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Manchester
    Posts
    266

    Slide Out Panel Control

    Just a quick one really folks. Has anyone come across any VB.net control that acts similarly to a kind of slide out panel. I'm thinking a form in which there is a little tab at the side which can be grabbed and pulled out to reveal more controls. (Pulling the panel over the current form). I assume that this is something I will have the create myself but I was just wondering whether anyone has come across a control that already does this.

    Cheers

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,374

    Re: Slide Out Panel Control

    I found this on google and I think that it's the, well you know what word I want to say! Check it out.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  3. #3
    Hyperactive Member ...:::ONE:::...'s Avatar
    Join Date
    May 2004
    Location
    Netherlands
    Posts
    282

    Re: Slide Out Panel Control

    Try the "ToolStripContainer" Control, otherwise you may have to make something on your own.



    -Chris
    6 Years

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Manchester
    Posts
    266

    Re: Slide Out Panel Control

    Thanks Gents. I'll probably do a bit of a hybrid jobby between these two solutions.

  5. #5
    Hyperactive Member DavesChillaxin's Avatar
    Join Date
    Mar 2011
    Location
    WNY
    Posts
    451

    Re: Slide Out Panel Control

    hmmm I'm thinking this is a good idea, and really I could use a control of this sort now.

    My best guess, and a way I'd tackle this is to inherit the panel control. Shadow or overrides the dock property and use this as a pointer to which your panel will slide out from. With that you can easily snap your panel to the top, left, right, or bottom of the parenting control. The docking would also tell you which way to slide. If your docked to the top then your obviously sliding down, etc etc. You can also ave properties to define how far your tab sticks out, how fast it slides. Maybe even a little more to the sliding as to have an animation effect to it. You could even theme it up and utilize the transparency key to give it a shape other than a square. This method could also help you out with having a physical tab that would appear to stick off your panel..

    There's so much you can do!

    Also I would avoid resizing the panel to have a sliding effect, rather have it maintain it's size and just have it slide outside of the parenting form via it's left and right properties. (EDIT: Which is why I said to override/shadow the dock. Avoid having the panel dock, just use the already existing dock property to let you know where your panel should be placed within the parent.)

    Should keep us posted with what you come up with.
    Last edited by DavesChillaxin; Jan 31st, 2012 at 01:45 PM.
    Please rate if my post was helpful!
    Per favore e grazie!




    Code Bank:
    Advanced Algebra Class *Update | True Gradient Label Control *Dev | A Smarter TextBox *Update | Register Global HotKey *Update
    Media Library Beta *Dev | Mouse Tracker (Available in VB.net and C#.net) *New | On-Screen Numpad (VB.net) *New

  6. #6
    New Member
    Join Date
    Oct 2013
    Posts
    1

    Re: Slide Out Panel Control

    Quote Originally Posted by intraman View Post
    Just a quick one really folks. Has anyone come across any VB.net control that acts similarly to a kind of slide out panel. I'm thinking a form in which there is a little tab at the side which can be grabbed and pulled out to reveal more controls. (Pulling the panel over the current form). I assume that this is something I will have the create myself but I was just wondering whether anyone has come across a control that already does this.

    Cheers
    Hello all:

    I adapted this slide panel, it works, just drop a PANEL on your form, make it invisible, set its BackColor to a color different that the form's backcolor, it's size to 10,482 and drop a BUTTON, place it to the left side of your form and adjust its size so it looks like a tab
    I removed the 2 timers used in the original example, mine is faster.



    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Panel1.Location = New Point(23, 0)
    End Sub
    '
    Private Sub Panel1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Panel1.MouseLeave
    Panel1.Visible = False
    End Sub
    '
    Private Sub Button1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.MouseEnter
    Panel1.Visible = True
    Panel1.Width = 250
    End Sub

  7. #7

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