Solved

Including Hyperlinks on forms

Posted on 2002-03-22
8
167 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
Comment Utility
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
Comment Utility
For what it is worth VB.NET includes a Link control for just this purpose.
0
 
LVL 1

Expert Comment

by:COAtheGREAT
Comment Utility
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
 
LVL 1

Expert Comment

by:COAtheGREAT
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 1

Expert Comment

by:COAtheGREAT
Comment Utility
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 6

Expert Comment

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

Expert Comment

by:DanRollins
Comment Utility
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
Comment Utility
Moving to the Paq

kb
Experts Exchange Moderator
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
LINQ return type for nested group query 6 59
Excel object stays open 19 64
MsgBox 2 36
How does CurrentUser work? 10 25
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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

728 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

12 Experts available now in Live!

Get 1:1 Help Now