Solved

Including Hyperlinks on forms

Posted on 2002-03-22
8
176 Views
Last Modified: 2010-05-02
How do you include hyperlinks on forms in VB6?Please help
0
Comment
Question by:coolg
8 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 20 total points
ID: 6888905
Just put a label on the form with the appropriate colour and in the form include this code:

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SW_SHOWNORMAL = 1

Private Sub Label1_Click()
    ShellExecute Me.hwnd, vbNullString, "http://www.experts-exchange.com", vbNullString, "C:\", SW_SHOWNORMAL
End Sub
0
 
LVL 7

Expert Comment

by:Joe_Griffith
ID: 6889037
For what it is worth VB.NET includes a Link control for just this purpose.
0
 
LVL 1

Expert Comment

by:COAtheGREAT
ID: 6889106
set reference to Microsoft internet controls
 
Dim ie As InternetExplorer
 
  Set ie = New InternetExplorer
  ie.Navigate "http://www.experts-exchange.com"
  ie.Visible = True
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

 
LVL 1

Expert Comment

by:COAtheGREAT
ID: 6889113
Same as tim just diferent code

set reference to Microsoft internet controls

Private Sub Label1_Click()

  Dim ie As InternetExplorer
 
  Set ie = New InternetExplorer
  ie.Navigate "http://www.experts-exchange.com"
  ie.Visible = True

End Sub
0
 
LVL 1

Expert Comment

by:COAtheGREAT
ID: 6889159
Same as tim just diferent code

set reference to Microsoft internet controls

Private Sub Label1_Click()

  Dim ie As InternetExplorer
 
  Set ie = New InternetExplorer
  ie.Navigate "http://www.experts-exchange.com"
  ie.Visible = True

End Sub
0
 
LVL 7

Expert Comment

by:Nitin Sontakke
ID: 6893608
I have put my comment on the duplicate question of this.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7634263
Hi coolg,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept TimCottee's comment(s) as an answer.

coolg, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:kodiakbear
ID: 7666163
Moving to the Paq

kb
Experts Exchange Moderator
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…

820 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