Hyperlink Control

Cost
Free
Version
1.5.

Readme

VB Web Hyperlink Control README file

About

The VB Web Hyperlink control allows you to easily add hyperlinks to your applications. The hyperlink can be linked to a web address, email address or a local file such as a readme file. The control also features a Hover facility, which allows the control to change colour when the mouse is positioned over it. If you need any help using the control, first look at the example project provided with the control. If that has not solved your problem, feel free to email [email protected].

The class name for the control is vbwHyperlink.

Installation

In order to install this application, please copy the file to your system directory. Then click Run on your start menu, and enter Regsvr32.exe vbwProgressBar.ocx. To add the ActiveX control to your project, click Project|Properties. Then click browse, and select vbwHyperlink.ocx. You will now see a new icon in your toolbox:

Properties

ALL properties can be set at both design time and run time.

AutoSize - Specifies whether the control should automatically resize to fit its caption
Caption - Sets the visible text.
Font - Changes the font used to display the text.
ForeColor - Changes the font colour that is displayed when the mouse is not over the hyperlink
BackColor - Changes the background colour.
HoverColour - Specifies the colour of the text to be displayed when it is hovering.
HoverUnderline – Returns/sets whether the text should be underlined when it is hovering.
URL - Specifies the hyperlink, file location or email address

Method

Refresh - Redraws the control
UserClick - Simulates the user clicking the control

Events

BeforeClick (Cancel As Boolean) - Occurs when the label is clicked. Set Cancel = False if you wish to cancel the click (ie not open file/url)

AfterClick (ByVal Failed As Boolean) - Occurs after the label is clicked. Failed = True if file is not found.

Examples

There is an example project (prjExample.vbp) included with this control.

Bugs

BackColor property does not affect the background colour. Thanks to Bernie Greene. Bug Fixed.
BeforeClick and AfterClick events did not appear to occur in the example program. Bug Fixed.
No Drop Icon occasionally appeared. Bug Fixed.

Product Support

If you would like to report a bug, please email [email protected].

Please note that we will take no responsibility for any loss, however caused through using this or any other VB Web control.

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.” - Donald Knuth