Example : How to Open a website in new page using Link label [Hyperlink Codes].

Private Sub LinkLabel1_LinkClicked(sender As Object, e As LinkLabelLinkClickedEventArgs) Handles 
   LinkLabel1.LinkClicked
         Process.Start("https://www.google.com")       
End Sub
'-------------  OR  --------------
Private Sub LinkLabel1_LinkClicked(sender As Object, e As LinkLabelLinkClickedEventArgs) Handles 
   LinkLabel1.LinkClicked         
        System.Diagnostics.Process.Start("https://www.google.com")
End Sub

Example : How to Open another VB page using Link label [Hyperlink Codes]

Private Sub LinkLabel1_LinkClicked(sender As Object, e As LinkLabelLinkClickedEventArgs) Handles 
   LinkLabel1.LinkClicked
        Form2.Show()
End Sub

 350 total views,  1 views today

Categories: VB .Net

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.