Solved

500 Points  Question

Posted on 2004-10-26
179 Views
Last Modified: 2010-04-23
0
Question by:imrancs
    4 Comments
     
    LVL 19

    Accepted Solution

    by:
    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


    0
     
    LVL 10

    Author Comment

    by:imrancs
    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.
    Imran
    0
     
    LVL 19

    Expert Comment

    by:arif_eqbal
    Thanks
    0
     
    LVL 10

    Author Comment

    by:imrancs
    You are Welcome!!! :o)
    0

    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 (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. 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