500 Points Question

LVL 10
imrancsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
imrancsAuthor Commented:
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
arif_eqbalCommented:
Thanks
0
imrancsAuthor Commented:
You are Welcome!!! :o)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.