|
-
Aug 29th, 2005, 09:34 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Linklabel
Iv done a forum search but can't figure out how to get it to work.
How can I make it so when you click the linklabel it will open up the users default browser to google.com for example.
Also I can't seem to find where to build the exe? How can I do this...
-
Aug 29th, 2005, 09:46 PM
#2
Re: Linklabel
You can build the exe by clicking "Build > Solution" and the exe will be located in your projects bin folder.
VB Code:
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
Dim oProcess As Process
oProcess.Start("http://www.google.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 
-
Aug 29th, 2005, 09:48 PM
#3
Thread Starter
Addicted Member
-
Aug 29th, 2005, 10:13 PM
#4
Re: [RESOLVED] Linklabel
Is process more like shellexecute or shell?
-
Aug 29th, 2005, 10:37 PM
#5
Re: [RESOLVED] Linklabel
Its more like Process, Jk. Its more like ShellExecute I'd say.
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 
-
Aug 29th, 2005, 10:55 PM
#6
Re: [RESOLVED] Linklabel
The Process class encapsulates a Windows process, so it is much more than just the Start method. You can call Process.Start to run a specific program, open a specific file with a specific program, and open a specific file with its default program, along with various other properties of the resultiant process. The ProcessStartInfo class, which can be used in conjunction with Process.Start, has a UseShellExecute property, which may have some similarity to a VB6 function named ShellExecute if there was one.
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
|