Solved

Including Hyperlinks on forms

Posted on 2002-03-22
8
184 Views
Last Modified: 2010-05-02
How do you include hyperlinks on forms in VB6?Please help
0
Comment
Question by:coolg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
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 9

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

690 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