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.
Re: Slide Out Panel Control
Try the "ToolStripContainer" Control, otherwise you may have to make something on your own.
-Chris
Re: Slide Out Panel Control
Thanks Gents. I'll probably do a bit of a hybrid jobby between these two solutions. :)
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.
Re: Slide Out Panel Control
Quote:
Originally Posted by
intraman
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 :wave:
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
Re: Slide Out Panel Control