This example program demonstrates how to automatically load a user's web browser and point it to a particular web site. The URL can also be a data file that has an extension that has been registered by an application on your system. The appropriate application is automatically loaded with the specified data file or URL.
The code is implemented as a simple control. The text (which can be different from the actual URL) is displayed with an underline and the mouse pointer changes to a hand when it is over the text. The URL property specifies the URL or data file that is loaded when the text is clicked. If the ShowToolTip property is true, a tooltip with the underlying URL is displayed when the mousepointer is parked over the text.
The only event, GoToURL, gives you a chance to change the URL or cancel altogether after the text is clicked.
Download source code here
Author:
SoftCircuits Programming
http://www.softcircuits.com
P.O. Box 16262 Irvine, CA 92623