ActiveX: HyperLink      (Filename: SLHYPER.OCX)

With the HyperLink ActiveX control you can insert hyperlinks on a form or dialog box.

When a user moves a mouse pointer over the hyperlink the mouse pointer changes to a hand pointer and if the user clicks it, a browser is invoked and a specified Internet page is opened. The HyperLink control can also be used to open mail clients. You can also specify a rollover color for the hyperlink, that means the hyperlink text will change color when the mouse pointer is above.  


Properties

Name Type Description
AutoSize Boolean Determines whether a control is automatically resized to display its entire contents.
 
BackColor Color Returns or sets the background color of the control.
 
Font Font Returns or sets the font of the control. 
 
HooverColor Color Returns or sets the rollover/hoover color of the control. The hoover color is shown when the mouse pointer is above the hyperlink.
 
HyperLink String Returns or sets the URL of the hyperlink. Can be a web address or an e-mail address. If you specify an e-mail address you must precede the URL with the text "mailto:", for example "mailto:info@samlogic.com". If a user clicks on the hyperlink and you have specified an e-mail address the default mail client application will be started and the field "To:" in the mail client will be automatically filled with the specified mail address.
 
NormalColor Color Returns or sets the text color of the hyperlink. 
 
Text String Returns or sets the hyperlink text.
 
ToolTipText String Returns or sets the tool tip for the control. The tool tip is showed when the mouse pointer is above the hyperlink. If you not want to use a tool tip text you can leave this property empty.
 
Left, Top Integer Returns or sets the coordinates of the control.
 
Height, Width Integer Returns or sets the height and width of the control.
 
Visible Boolean Returns or sets a value indicating whether an object is visible or hidden.
 


Events

Name Description
ErrorOccured Occurrs if there is an error when the user clicks the hyperlink. The parameter ErrNumber contains an error number.
 
HyperLinkClicked Occurrs when the user clicks the hyperlink.
  


Example 

HyperLink1.Text = "SamLogic Homepage"
HyperLink1.ToolTipText = "Don't forget to visit our homepage!"
HyperLink1.Hyperlink = "www.samlogic.net"
HyperLink1.AutoSize = True



SamLogic Home Go Back