Solved

Imagemap and hipperlink

Posted on 2000-04-28
3
254 Views
Last Modified: 2012-05-04
Is it possible to make an Imagemap and a hipperlink like html pages in VB6?
If Yes how?
Thanks
Alberto

0
Comment
Question by:asimoes
3 Comments
 
LVL 3

Accepted Solution

by:
Maxim10553 earned 50 total points
Comment Utility
here is an easy way to allow the user of the program to dynamically create a hyperlink. Need to add a command button called Command1 and a label named Label1. Set Label1 autosize property to true, its caption blank and make its forecolor property to blue, mouse pointer property to 99-custom.

Private Sub Command1_Click()
Dim Caption As String, URL As String

Caption = InputBox("What do you want to call the link?", "Enter Caption")
URL = InputBox("What is the URL?", "Enter URL")
Label1.Caption = Caption
Label1.Tag = URL
End Sub


Private Sub Label1_Click()
Dim Explore As New InternetExplorer

Explore.Visible = True
Explore.Navigate Label1.Tag

Set Explore = Nothing

End Sub

0
 
LVL 28

Expert Comment

by:AzraSound
Comment Utility
0
 

Author Comment

by:asimoes
Comment Utility
Comment accepted as answer
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now