|
-
Jul 15th, 2003, 01:41 PM
#1
Thread Starter
Fanatic Member
How to get "Auto-Hide" like in IDE
I have a treeview (which I can put on a panel if it is required) which represents a menu of options, and I want to auto-hide it like the properties or tools or any of the other panels that are in the VS.NET IDE.
Does anyone have any code or ideas or links or anything?
I wasn't sure what to search for - but I am sure this has been asked before.
-
Jul 15th, 2003, 11:22 PM
#2
yay gay
use the Magic Tools...but i cant remember the site..anyone?
\m/  \m/
-
Jul 15th, 2003, 11:30 PM
#3
Lively Member
I think VBCrazycoder is talking about this
http://www.dotnetmagic.com/index.html
You could also create a custom control and probably extend the listview control. Maybe someone can come up with an example.
Hope that helps
-
Jul 16th, 2003, 06:59 AM
#4
Thread Starter
Fanatic Member
Sweet! I will check it out - but that takes the fun out of developing it yourself!
-
Jul 16th, 2003, 07:37 AM
#5
if you want something that slides on to the screen ( eg : a panel with controls on it ) you can do this :
VB Code:
Dim i As Integer
' //// referenced to the whole form ^^^
'/////
'//// add a panel to the form , but make it's so it's right is
'//// at 0 , ( eg it's hidden to the left of your form.
'////
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim x As Integer
i = Panel1.Left
For x = Panel1.Left To 0
Panel1.Left = x
'Threading.Thread.Sleep(1) '// make it slide slowly by using Sleep.
Next
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Panel1.Left = i '/// hide the panel.
End Sub
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Jul 16th, 2003, 07:53 AM
#6
Thread Starter
Fanatic Member
Thanks for the code, I will try it. I think it will take me a week to figure out what the Magic Install code is doing and how to get an "Auto-hide" panel! Would have been nice to just be able to drag a panel onto the form and just set a property to true to make it autohide.
-
Jul 16th, 2003, 08:00 AM
#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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|