Click here to Skip to main content
Click here to Skip to main content

XP Link Label (VB 2005)

, 4 Dec 2005 CPOL
Rate this:
Please Sign up or sign in to vote.
A LinkLabel that mimics the ones in the task pane of Windows Explorer.


This is my first attempt at making my own control. It mimics the LinkLabel that XP uses in the task pane on the left hand side of Explorer windows.

Screenshot of the real LinkLabels:

Sample image

The screenshot below shows the control at design time. As you can see, it has a "Smart Tag" with it, and the code also shows how to remove properties from the Properties panel that you don't want users to change.

Sample image

I know that you can probably just take a normal LinkLabel and add an image to it to make it look kind of like this, but I wanted to figure out how to add my own Smart Tags and display the real hand cursor when you hovered over it. The hand cursor that displays on this control is not the one that is built into VS. It's the real one from XP, with the shadow under it.

Take a look at it if you want and, by all means, leave me comments. I wasn't really sure how to do the drawing of the image and text, I was just winging it, so I'm sure there are better ways of doing it.


I noticed that the mouse cursor was flickering when it left the control, and figured out that it was the following line:


If you have downloaded the demo, remove the above line for a smoother MouseLeave.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author


United States United States
No Biography provided

Comments and Discussions

QuestionWhat exactly? Pinmemberismaildurmaz25-Jan-06 14:46 
AnswerRe: What exactly? Pinmembermarclile25-Jan-06 15:03 
GeneralRe: What exactly? Pinmemberdungeonsdarknight27-Jan-06 18:58 
GeneralReally Good Control PinmemberDennis Alexander Petrasch1-Jan-06 4:25 
GeneralRe: Really Good Control Pinmembercomputerguru9238223-Jan-06 16:54 
GeneralRe: Really Good Control Pinmembermarclile24-Jan-06 3:56 
GeneralRe: Really Good Control Pinmembercomputerguru9238224-Jan-06 14:02 
QuestionExplorerBar Control? Pinmemberarhoads768-Dec-05 5:21 
AnswerRe: ExplorerBar Control? Pinmembermarclile8-Dec-05 17:39 
GeneralRe: ExplorerBar Control? Pinmemberarhoads769-Dec-05 3:29 
GeneralRe: ExplorerBar Control? Pinmemberjklucker13-Dec-05 6:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web03 | 2.8.141022.2 | Last Updated 4 Dec 2005
Article Copyright 2005 by marclile
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid