Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


500 Points  Question

Posted on 2004-10-26
Medium Priority
Last Modified: 2010-04-23
Question by:imrancs
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 19

Accepted Solution

arif_eqbal earned 2000 total points
ID: 12418906
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

ID: 12419002
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

ID: 12419006
LVL 10

Author Comment

ID: 12419648
You are Welcome!!! :o)

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

636 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