Solved

Imagemap and hipperlink

Posted on 2000-04-28
3
255 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
ID: 2759437
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
ID: 2759769
0
 

Author Comment

by:asimoes
ID: 2849061
Comment accepted as answer
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

776 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