Results 1 to 3 of 3

Thread: Hyperlink Control

  1. #1
    Member
    Join Date
    Jun 12
    Posts
    36

    Hyperlink Control

    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.

    Name:  HyperlinkSamplePic.png
Views: 178
Size:  3.1 KB

    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 Files Attached Files
    Last edited by Krool; Nov 30th, 2012 at 03:01 PM.

  2. #2
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 08
    Location
    Trivandrum, Kerala, India
    Posts
    7,557

    Re: Hyperlink Control

    Looks cool.

    Does it changes textcolor when hovered?


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD Athlon X2 5200+, ASUS Motherboard, 2 GB RAM, 400 GB HDD, Nvidia 8600 GT 512MB, 19.5" TFT(Wide), Creative 5.1 Home Theater

    Social Group: VBForums - Developers from India

    Skills: PHP, MySQL, jQuery, VB.Net, VB6, Photoshop...

  3. #3
    Member
    Join Date
    Jun 12
    Posts
    36

    Re: Hyperlink Control

    Now it does

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •