|
-
Jul 28th, 2007, 02:15 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] link label question
how to do when user press the link label, then show the url in the browser and run it?
-
Jul 28th, 2007, 02:59 PM
#2
Re: link label question
In WebBorser control nthat may have on your form OR in any default browser that you may have installed on your system?
Also, what control do you use for your "link label" and where is the actual url comming from?
-
Jul 28th, 2007, 04:56 PM
#3
Re: link label question
LinkLabel controls are .NET specific. Are you using .NET?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 28th, 2007, 10:01 PM
#4
Re: link label question
vb Code:
Private Sub Label1_Click()
ShellExecute Me.hwnd, "OPEN", "url", vbNullString, vbNullString, 5
End Sub
That will open the site/url of your choice in the default browser using the ShellExecute API.
-
Jul 28th, 2007, 10:09 PM
#5
Re: link label question
Doh! Just seen his signature stating its VS 2005
Thread Moved.
Code:
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
System.Diagnostics.Process.Start("http://vbforums.com")
End Sub
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 29th, 2007, 10:23 AM
#6
Thread Starter
Hyperactive Member
Re: link label question
oops...I already use System.Diagnostics.Process.Start("http://vbforums.com")
I always found out exception...but now i have solution:
dun forget start with "http://" although your link do not have "http://"
thx for all help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|