500 Points  Question

Posted on 2004-10-26
Last Modified: 2010-04-23
Question by:imrancs
    LVL 19

    Accepted Solution

    Add a Panel Dock it properly so that it is Docked to the Bottom and Left of the Form

    Now add whatever Controls you want to appear on the Panel I have Added one Button called Button3. Also on the top Right Cornor add a small button called CmdPin which will be used to Pin the Panel

    Now Add the code

    declare a form level variable
    Dim Pinned As Boolean = False

    'Handle the MouseEnter for all control added on the Panel
        Private Sub Panel1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Panel1.MouseEnter, Button3.MouseEnter
            Me.Panel1.Width = 100
        End Sub

        Private Sub Panel1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Panel1.MouseLeave, Button3.MouseLeave
            If Not Pinned Then Panel1.Width = 10
        End Sub

       Private Sub CmdPin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdPin.Click
            Pinned = Not Pinned
        End Sub

    Now this is very crude code, you need to beautify things a bit for example instead of directly setting Panel1.Width = 10 And Panel1.Width = 100

    call a Timer and this Timer will slowly increment or decrement the width giving an Animation effect.

    However this might get you started

    LVL 10

    Author Comment

    Thanks Arif,

    I have got the Infragistics WinDock control and I am working on it.

    But you gave me good option with using third party control, so I am acception your comments as answer.

    I am deleting the question for which I have posted the link above and increasing the points of this question.

    Thanks again.
    LVL 19

    Expert Comment

    LVL 10

    Author Comment

    You are Welcome!!! :o)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    This video discusses moving either the default database or any database to a new volume.

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now