Results 1 to 7 of 7

Thread: How to get "Auto-Hide" like in IDE

  1. #1

    Thread Starter
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681

    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.

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    use the Magic Tools...but i cant remember the site..anyone?
    \m/\m/

  3. #3
    Lively Member
    Join Date
    Mar 2002
    Posts
    68
    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

  4. #4

    Thread Starter
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    Sweet! I will check it out - but that takes the fun out of developing it yourself!

  5. #5
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    if you want something that slides on to the screen ( eg : a panel with controls on it ) you can do this :
    VB Code:
    1. Dim i As Integer
    2. ' //// referenced to the whole form ^^^
    3. '/////
    4. '//// add a panel to the form , but make it's so it's right is
    5. '//// at 0 , ( eg it's hidden to the left of your form.
    6. '////
    7.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    8.         Dim x As Integer
    9.         i = Panel1.Left
    10.         For x = Panel1.Left To 0
    11.             Panel1.Left = x
    12.             'Threading.Thread.Sleep(1) '// make it slide slowly by using Sleep.
    13.         Next
    14.     End Sub
    15.  
    16.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    17.  
    18.         Panel1.Left = i '/// hide the panel.
    19.  
    20.     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]

  6. #6

    Thread Starter
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    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.

  7. #7
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I had bad experience with sliding forms and autohide . I was doing sorta quickbar but the main problem was flickering ...so I quit it...lol

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