Solved

hyperlinks in vb5

Posted on 1998-02-27
3
232 Views
Last Modified: 2008-03-10
I am developing an activex document application for an intranet site, and need to create hyperlinks which can be used to navigate through the application.  I need these to work in the same way as they do on HTML pages where the text is a different color and the mouse changes when moved over the link, and a single click will perform the navigation.  Will I have to program the mouse events for the text box or label, or is there a 'proper' way this can be done, and be recognized by the web browser as a link.
0
Comment
Question by:gbr
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 30 total points
ID: 1458136
You can use a regular label with the font and color adjusted accordingly as a hyperlink. Set the .MousePointer to vbCustom, and .MouseIcon to the image of the hand. In the _Click event, Use ShellExecute with the URL
0
 

Expert Comment

by:wisdom_y
ID: 1458137
you can use rich-text to color text,and on click event to determine  what
word  is clicked. ( use:  instr,  selstart property )

excuse me, my english is poor.
0
 
LVL 8

Expert Comment

by:MikeP090797
ID: 1458140
You can use a screen capture utility to capture the screen image when the pointer is on a hyperlink in a browser, and then extract the hand part to an icon file
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question