Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1471

Hyperlink Control

$
0
0
This is a UserControl for simulating a Hyperlink. The control is build up by a simple label.
But it have some advantages comparing to a simple label putted on a form.

It will show up a hand cursor when the mouse is over the control. In addition a hover effect can be used when the mouse is over it.
The control itself can receive focus, which is very helpful for keyboard users. But it only keeps the focus when control is not entered by mouse.

The control fires a "Jump" event. In that event the code should be put to open a url, document or anything else.

Attachment 90515

Attachment: Sample project with the hyperlink (user)control.

EDIT1:
- It now supports a ColorUsed property.
- The focus can be navigated now with the arrow keys within the controls container.
- Added a PrepareJump event where the user can set if the LostFocus Event will always be fired or not. (Example Usage: Calling a MsgBox in the Jump Event will not fire the LostFocus Event. Therefore a possible focusrect drawing is still visible while the MsgBox is displayed)
- other minor improvements

EDIT2:
- It now supports the system hand cursor. Therefore added a CursorCustom property. If set to False the system cursor will be used, otherwise it uses a custom cursor like before.
- other minor improvements
Attached Images
 
Attached Files

Viewing all articles
Browse latest Browse all 1471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>