Solved

hyperlinks in vb5

Posted on 1998-02-27
3
231 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA error replacing data 6 40
Best way to parse out a json string in VB6? 10 218
Excel VBA, find a string in a column, update a cell 7 86
RUNRMTCMD from AS/400 12 68
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

839 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