<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net%2FGUI%2FLinkLabel</id>
		<title>VB.Net/GUI/LinkLabel - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net%2FGUI%2FLinkLabel"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/GUI/LinkLabel&amp;action=history"/>
		<updated>2026-04-05T12:20:24Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net/GUI/LinkLabel&amp;diff=500&amp;oldid=prev</id>
		<title> в 16:40, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/GUI/LinkLabel&amp;diff=500&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:06Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 16:40, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net/GUI/LinkLabel&amp;diff=501&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/GUI/LinkLabel&amp;diff=501&amp;oldid=prev"/>
				<updated>2010-05-26T12:43:23Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Click LinkLabel to Open website in your Default Web Browser==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    &lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim form1 As Form = New Form1&lt;br /&gt;
        Application.Run(form1)&lt;br /&gt;
&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    Friend WithEvents lnkBuy As System.Windows.Forms.LinkLabel&lt;br /&gt;
    Friend WithEvents lnkWebSite As System.Windows.Forms.LinkLabel&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.lnkBuy = New System.Windows.Forms.LinkLabel()&lt;br /&gt;
        Me.lnkWebSite = New System.Windows.Forms.LinkLabel()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;lnkBuy&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.lnkBuy.Font = New System.Drawing.Font(&amp;quot;Tahoma&amp;quot;, 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.lnkBuy.LinkArea = New System.Windows.Forms.LinkArea(0, 0)&lt;br /&gt;
        Me.lnkBuy.Location = New System.Drawing.Point(16, 60)&lt;br /&gt;
        Me.lnkBuy.Name = &amp;quot;lnkBuy&amp;quot;&lt;br /&gt;
        Me.lnkBuy.Size = New System.Drawing.Size(244, 48)&lt;br /&gt;
        Me.lnkBuy.TabIndex = 3&lt;br /&gt;
        Me.lnkBuy.Text = &amp;quot;www.vbex.ru&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;lnkWebSite&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.lnkWebSite.Font = New System.Drawing.Font(&amp;quot;Tahoma&amp;quot;, 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.lnkWebSite.LinkArea = New System.Windows.Forms.LinkArea(0, 0)&lt;br /&gt;
        Me.lnkWebSite.Location = New System.Drawing.Point(16, 16)&lt;br /&gt;
        Me.lnkWebSite.Name = &amp;quot;lnkWebSite&amp;quot;&lt;br /&gt;
        Me.lnkWebSite.Size = New System.Drawing.Size(248, 36)&lt;br /&gt;
        Me.lnkWebSite.TabIndex = 2&lt;br /&gt;
        Me.lnkWebSite.Text = &amp;quot;The whole line is a LinkLabel&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(292, 150)&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.lnkBuy, Me.lnkWebSite})&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Link Examples&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Sub lnkBuy_LinkClicked(ByVal sender As Object, _&lt;br /&gt;
      ByVal e As LinkLabelLinkClickedEventArgs) Handles lnkBuy.LinkClicked, _&lt;br /&gt;
      lnkWebSite.LinkClicked&lt;br /&gt;
        e.Link.Visited = True&lt;br /&gt;
        System.Diagnostics.Process.Start(CType(e.Link.LinkData, String))&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;
        lnkBuy.Links.Add(0, 2, &amp;quot;http://www.vbex.ru&amp;quot;)&lt;br /&gt;
        lnkBuy.Links.Add(6, 10, &amp;quot;http://www.vbex.ru&amp;quot;)&lt;br /&gt;
        lnkWebSite.Links.Add(0, 10, &amp;quot;http://www.vbex.ru&amp;quot;)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Set different URL for one LinkLabel==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports  System.Diagnostics &lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    &lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
       Dim form1 As Form = New Form1&lt;br /&gt;
       Application.Run(form1)    &lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;
        Dim new_link As System.Windows.Forms.LinkLabel.Link&lt;br /&gt;
        llblPangram.Links.Clear()&lt;br /&gt;
        new_link = llblPangram.Links.Add(16, 3)&lt;br /&gt;
        new_link.LinkData = &amp;quot;http://www.vbex.ru&amp;quot;&lt;br /&gt;
        new_link = llblPangram.Links.Add(40, 3)&lt;br /&gt;
        new_link.LinkData = &amp;quot;http://www.vbex.ru&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot; Display the URL associated with the clicked link.&lt;br /&gt;
    Private Sub llblPangram_LinkClicked(ByVal sender As System.Object, _&lt;br /&gt;
     ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) _&lt;br /&gt;
     Handles llblPangram.LinkClicked&lt;br /&gt;
        System.Diagnostics.Process.Start(e.Link.LinkData.ToString)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Global.Microsoft.VisualBasic.rupilerServices.DesignerGenerated()&amp;gt; _&lt;br /&gt;
Partial Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerNonUserCode()&amp;gt; _&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing AndAlso components IsNot Nothing Then&lt;br /&gt;
            components.Dispose()&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; _&lt;br /&gt;
    Private Sub InitializeComponent()&lt;br /&gt;
        Me.llblPangram = New System.Windows.Forms.LinkLabel&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;llblPangram&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.llblPangram.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.llblPangram.Location = New System.Drawing.Point(8, 80)&lt;br /&gt;
        Me.llblPangram.Name = &amp;quot;llblPangram&amp;quot;&lt;br /&gt;
        Me.llblPangram.Size = New System.Drawing.Size(296, 24)&lt;br /&gt;
        Me.llblPangram.TabIndex = 1&lt;br /&gt;
        Me.llblPangram.TabStop = True&lt;br /&gt;
        Me.llblPangram.Text = &amp;quot;The quick brown fox jumps over the lazy dog.&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)&lt;br /&gt;
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(325, 181)&lt;br /&gt;
        Me.Controls.Add(Me.llblPangram)&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;UseLinkLabel&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
        Me.PerformLayout()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Friend WithEvents llblPangram As System.Windows.Forms.LinkLabel&lt;br /&gt;
End Class&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Use LinkLabel and load the link in your system default browser==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports  System.Diagnostics &lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    &lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
       Dim form1 As Form = New Form1&lt;br /&gt;
       Application.Run(form1)    &lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Private Sub llblBookUrl_LinkClicked(ByVal sender As System.Object, _&lt;br /&gt;
     ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) _&lt;br /&gt;
     Handles llblBookUrl.LinkClicked&lt;br /&gt;
        System.Diagnostics.Process.Start(llblBookUrl.Tag.ToString)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Global.Microsoft.VisualBasic.rupilerServices.DesignerGenerated()&amp;gt; _&lt;br /&gt;
Partial Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerNonUserCode()&amp;gt; _&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing AndAlso components IsNot Nothing Then&lt;br /&gt;
            components.Dispose()&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; _&lt;br /&gt;
    Private Sub InitializeComponent()&lt;br /&gt;
        Me.llblBookUrl = New System.Windows.Forms.LinkLabel&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;llblBookUrl&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.llblBookUrl.AutoSize = True&lt;br /&gt;
        Me.llblBookUrl.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 14.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.llblBookUrl.Location = New System.Drawing.Point(24, 24)&lt;br /&gt;
        Me.llblBookUrl.Name = &amp;quot;llblBookUrl&amp;quot;&lt;br /&gt;
        Me.llblBookUrl.Size = New System.Drawing.Size(239, 24)&lt;br /&gt;
        Me.llblBookUrl.TabIndex = 0&lt;br /&gt;
        Me.llblBookUrl.TabStop = True&lt;br /&gt;
        Me.llblBookUrl.Tag = &amp;quot;http://www.java.ru&amp;quot;&lt;br /&gt;
        Me.llblBookUrl.Text = &amp;quot;Visit www.vbex.ru!&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)&lt;br /&gt;
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(325, 181)&lt;br /&gt;
        Me.Controls.Add(Me.llblBookUrl)&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;UseLinkLabel&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
        Me.PerformLayout()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Friend WithEvents llblBookUrl As System.Windows.Forms.LinkLabel&lt;br /&gt;
End Class&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using LinkLabels to create hyperlinks: browse C:\ drive==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
   Shared Sub Main()&lt;br /&gt;
        Dim myform As Form = New FrmLinkLabel()&lt;br /&gt;
        Application.Run(myform)&lt;br /&gt;
   End Sub &amp;quot; Main&lt;br /&gt;
End Class&lt;br /&gt;
Public Class FrmLinkLabel&lt;br /&gt;
   Inherits Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
   Public Sub New()&lt;br /&gt;
      MyBase.New()&lt;br /&gt;
      &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
      InitializeComponent()&lt;br /&gt;
      &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
   End Sub&lt;br /&gt;
   &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
   Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
      If disposing Then&lt;br /&gt;
         If Not (components Is Nothing) Then&lt;br /&gt;
            components.Dispose()&lt;br /&gt;
         End If&lt;br /&gt;
      End If&lt;br /&gt;
      MyBase.Dispose(disposing)&lt;br /&gt;
   End Sub&lt;br /&gt;
   &amp;quot; linklabels to C: drive, www.deitel.ru and Notepad&lt;br /&gt;
   Friend WithEvents lnklblCDrive As LinkLabel&lt;br /&gt;
   &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
   Private components As System.ruponentModel.Container&lt;br /&gt;
   &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
   &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
   &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
   &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
      Me.lnklblCDrive = New LinkLabel()&lt;br /&gt;
      Me.SuspendLayout()&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;lnklblCDrive&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.lnklblCDrive.Location = New System.Drawing.Point(72, 16)&lt;br /&gt;
      Me.lnklblCDrive.Name = &amp;quot;lnklblCDrive&amp;quot;&lt;br /&gt;
      Me.lnklblCDrive.TabIndex = 0&lt;br /&gt;
      Me.lnklblCDrive.TabStop = True&lt;br /&gt;
      Me.lnklblCDrive.Text = &amp;quot;Click to browse C:\&amp;quot;&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;FrmLinkLabel&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
      Me.ClientSize = New System.Drawing.Size(264, 149)&lt;br /&gt;
      Me.Controls.AddRange(New Control() {Me.lnklblCDrive})&lt;br /&gt;
      Me.Name = &amp;quot;FrmLinkLabel&amp;quot;&lt;br /&gt;
      Me.Text = &amp;quot;LinkLabelTest&amp;quot;&lt;br /&gt;
      Me.ResumeLayout(False)&lt;br /&gt;
   End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
   &amp;quot; browse C:\ drive&lt;br /&gt;
   Private Sub lnklblCDrive_LinkClicked _&lt;br /&gt;
      (ByVal sender As System.Object, ByVal e As _&lt;br /&gt;
      System.Windows.Forms.LinkLabelLinkClickedEventArgs) _&lt;br /&gt;
      Handles lnklblCDrive.LinkClicked&lt;br /&gt;
      lnklblCDrive.LinkVisited = True&lt;br /&gt;
      System.Diagnostics.Process.Start(&amp;quot;C:\&amp;quot;)&lt;br /&gt;
   End Sub &amp;quot; lnklblCDrive&lt;br /&gt;
End Class &lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using LinkLabels to create hyperlinks: Open Browser==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
   Shared Sub Main()&lt;br /&gt;
        Dim myform As Form = New FrmLinkLabel()&lt;br /&gt;
        Application.Run(myform)&lt;br /&gt;
   End Sub &amp;quot; Main&lt;br /&gt;
End Class&lt;br /&gt;
Public Class FrmLinkLabel&lt;br /&gt;
   Inherits Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
   Public Sub New()&lt;br /&gt;
      MyBase.New()&lt;br /&gt;
      &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
      InitializeComponent()&lt;br /&gt;
      &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
   End Sub&lt;br /&gt;
   &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
   Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
      If disposing Then&lt;br /&gt;
         If Not (components Is Nothing) Then&lt;br /&gt;
            components.Dispose()&lt;br /&gt;
         End If&lt;br /&gt;
      End If&lt;br /&gt;
      MyBase.Dispose(disposing)&lt;br /&gt;
   End Sub&lt;br /&gt;
   &amp;quot; linklabels to C: drive, www.deitel.ru and Notepad&lt;br /&gt;
   Friend WithEvents linkLabel As LinkLabel&lt;br /&gt;
   &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
   Private components As System.ruponentModel.Container&lt;br /&gt;
   &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
   &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
   &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
   &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
      Me.linkLabel = New LinkLabel()&lt;br /&gt;
      Me.SuspendLayout()&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;linkLabel&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.linkLabel.Location = New System.Drawing.Point(72, 16)&lt;br /&gt;
      Me.linkLabel.Name = &amp;quot;linkLabel&amp;quot;&lt;br /&gt;
      Me.linkLabel.TabIndex = 0&lt;br /&gt;
      Me.linkLabel.TabStop = True&lt;br /&gt;
      Me.linkLabel.Text = &amp;quot;http://www.vbex.ru&amp;quot;&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;FrmLinkLabel&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
      Me.ClientSize = New System.Drawing.Size(364, 149)&lt;br /&gt;
      Me.Controls.AddRange(New Control() {Me.linkLabel})&lt;br /&gt;
      Me.Name = &amp;quot;FrmLinkLabel&amp;quot;&lt;br /&gt;
      Me.Text = &amp;quot;LinkLabelTest&amp;quot;&lt;br /&gt;
      Me.ResumeLayout(False)&lt;br /&gt;
   End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
   &amp;quot; browse C:\ drive&lt;br /&gt;
   Private Sub linkLabel_LinkClicked _&lt;br /&gt;
      (ByVal sender As System.Object, ByVal e As _&lt;br /&gt;
      System.Windows.Forms.LinkLabelLinkClickedEventArgs) _&lt;br /&gt;
      Handles linkLabel.LinkClicked&lt;br /&gt;
      linkLabel.LinkVisited = True&lt;br /&gt;
      System.Diagnostics.Process.Start _&lt;br /&gt;
         (&amp;quot;IExplore&amp;quot;, &amp;quot;http://www.vbex.ru&amp;quot;)&lt;br /&gt;
   End Sub &amp;quot; linkLabel&lt;br /&gt;
End Class &lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using LinkLabels to create hyperlinks: Open Notepad==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
   Shared Sub Main()&lt;br /&gt;
        Dim myform As Form = New FrmLinkLabel()&lt;br /&gt;
        Application.Run(myform)&lt;br /&gt;
   End Sub &amp;quot; Main&lt;br /&gt;
End Class&lt;br /&gt;
Public Class FrmLinkLabel&lt;br /&gt;
   Inherits Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
   Public Sub New()&lt;br /&gt;
      MyBase.New()&lt;br /&gt;
      &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
      InitializeComponent()&lt;br /&gt;
      &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
   End Sub&lt;br /&gt;
   &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
   Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
      If disposing Then&lt;br /&gt;
         If Not (components Is Nothing) Then&lt;br /&gt;
            components.Dispose()&lt;br /&gt;
         End If&lt;br /&gt;
      End If&lt;br /&gt;
      MyBase.Dispose(disposing)&lt;br /&gt;
   End Sub&lt;br /&gt;
   &amp;quot; linklabels to C: drive, www.deitel.ru and Notepad&lt;br /&gt;
   Friend WithEvents linkLabel As LinkLabel&lt;br /&gt;
   &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
   Private components As System.ruponentModel.Container&lt;br /&gt;
   &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
   &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
   &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
   &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
      Me.linkLabel = New LinkLabel()&lt;br /&gt;
      Me.SuspendLayout()&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;linkLabel&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.linkLabel.Location = New System.Drawing.Point(72, 16)&lt;br /&gt;
      Me.linkLabel.Name = &amp;quot;linkLabel&amp;quot;&lt;br /&gt;
      Me.linkLabel.TabIndex = 0&lt;br /&gt;
      Me.linkLabel.TabStop = True&lt;br /&gt;
      Me.linkLabel.Text = &amp;quot;Open Notepad&amp;quot;&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;FrmLinkLabel&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
      Me.ClientSize = New System.Drawing.Size(364, 149)&lt;br /&gt;
      Me.Controls.AddRange(New Control() {Me.linkLabel})&lt;br /&gt;
      Me.Name = &amp;quot;FrmLinkLabel&amp;quot;&lt;br /&gt;
      Me.Text = &amp;quot;LinkLabelTest&amp;quot;&lt;br /&gt;
      Me.ResumeLayout(False)&lt;br /&gt;
   End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
   &amp;quot; browse C:\ drive&lt;br /&gt;
   Private Sub linkLabel_LinkClicked _&lt;br /&gt;
      (ByVal sender As System.Object, ByVal e As _&lt;br /&gt;
      System.Windows.Forms.LinkLabelLinkClickedEventArgs) _&lt;br /&gt;
      Handles linkLabel.LinkClicked&lt;br /&gt;
      linkLabel.LinkVisited = True&lt;br /&gt;
      System.Diagnostics.Process.Start(&amp;quot;notepad&amp;quot;)&lt;br /&gt;
  End Sub &amp;quot; linkLabel&lt;br /&gt;
End Class &lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>