Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > hyperlink


Reply
 
Thread Tools Display Modes
  #1  
Old 12-31-2002, 03:51 AM
wilbert's Avatar
wilbert wilbert is offline
Senior Contributor
 
Join Date: Dec 2002
Location: Netherlands
Posts: 867
Default hyperlink


Just a simple question.
How can you make a hyperlink in Visual Basic?
Wilbert
Reply With Quote
  #2  
Old 12-31-2002, 04:34 AM
Flyguy's Avatar
Flyguy Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 18,885
Default

You have to program that yourself, or search the code library for the hyperlink control.
Reply With Quote
  #3  
Old 12-31-2002, 06:54 AM
John's Avatar
John John is offline
Bit Flipper
 
Join Date: Feb 2002
Location: The Inner Loop
Posts: 5,550
Default

Have a look at the ShellExecute. Something like this will do the trick:
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 Private Const SW_SHOWNORMAL = 2 Private Sub lblHyperlink_Click() 'Launch the default web browser and navigate to the site ShellExecute Me.hwnd, "open", "http://www.xtremevbtalk.com", ByVal 0&, _ "", SW_SHOWNORMAL End Sub

A simple search of the forum pulls up a few examples as well.

Orbity
__________________
Subclassing|Magnetic Forms|Operator Overloading (VB2K5)|QuickSnip.NET

"These Patriot playoff wins are like Ray Charles songs, Nantucket sunsets, and hot fudge sundaes. Each one is better than the last." - Dan Shaughnessy
Reply With Quote
  #4  
Old 12-31-2002, 11:45 AM
wilbert's Avatar
wilbert wilbert is offline
Senior Contributor
 
Join Date: Dec 2002
Location: Netherlands
Posts: 867
Default

thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->