•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 391,579 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,716 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser:
Views: 863 | Replies: 2
![]() |
•
•
Join Date: Jan 2008
Posts: 24
Reputation:
Rep Power: 1
Solved Threads: 0
Hi
In vb.net you having a tool named Link Label.
Use the link label to link a HTML Page to your form.
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal_
e As System.Windows.Forms.LinkLabelLinkClickedEventArgs)_
Handles LinkLabel1.LinkClicked
System.Diagnostics.Process.Start("www.startvbdotnet.com")
'using the start method of system.diagnostics.process class
'process class gives access to local and remote processes
End Sub
Give your target like("c:\...") inside the System.Diagnostics.Process.Start() method.
For further clarification see the following link
http://www.startvbdotnet.com/controls/label.aspx
In vb.net you having a tool named Link Label.
Use the link label to link a HTML Page to your form.
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal_
e As System.Windows.Forms.LinkLabelLinkClickedEventArgs)_
Handles LinkLabel1.LinkClicked
System.Diagnostics.Process.Start("www.startvbdotnet.com")
'using the start method of system.diagnostics.process class
'process class gives access to local and remote processes
End Sub
Give your target like("c:\...") inside the System.Diagnostics.Process.Start() method.
For further clarification see the following link
http://www.startvbdotnet.com/controls/label.aspx
Last edited by suganzeni : Mar 11th, 2008 at 5:57 am.
•
•
Join Date: Jan 2008
Posts: 20
Reputation:
Rep Power: 1
Solved Threads: 0
I can't go smarter than this (I'm no expert), but following worked for me:
Change "iexplore.exe" and its directory to a browser of your choice.
Or else, you can do what "suganzeni" suggested but inside your button code. e.g.:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Shell("C:\Program Files\Internet Explorer\iexplore.exe http://www.yourwebsite.com")
End SubChange "iexplore.exe" and its directory to a browser of your choice.
Or else, you can do what "suganzeni" suggested but inside your button code. e.g.:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
System.Diagnostics.Process.Start("http://www.yourwebsite.com")
End Sub Last edited by leokuz : Mar 12th, 2008 at 2:52 pm.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb VB.NET Marketplace
•
•
•
•
ads adsense code css development div dreamweaver firefox google google checkout google checkout vat how to insert big html markup with white spaces(i.e. line breaks) and single and double quotation marks to sql server html html api javascript link news revenue symantec tables text unit w3c web wysiwyg xml
- Custom page to login to Yahoo, Gmail, MSN etc (JavaScript / DHTML / AJAX)
- How to open HTML page in a browser with specific options selected in drop-down boxes? (Perl)
- Navigation (Paging) in HTML table in VB.NET. (VB.NET)
- Can I run an ASP file from a Java Applet Button? (Java)
- Go to a certain page when button is pressed and do it securely (ASP.NET)
- submit button code (Perl)
- VB6 submit button sends information to BBChat (Visual Basic 4 / 5 / 6)
- How to create a web page with scrolling menus to specific entries (HTML and CSS)
- Web Link freezes - Hijack This results (Viruses, Spyware and other Nasties)
Other Threads in the VB.NET Forum
- Previous Thread: how to bring the items at list view to the another form
- Next Thread: Loading Data from MS Access Query


Linear Mode