Set Label Border style : LinkLabel « GUI « VB.Net Tutorial






Set Label Border style
imports System
imports System.Drawing
imports System.Windows.Forms

public class Timers : inherits Form

  dim lblTime as Label

  public sub New()
    Size = new Size(300,100)

    lblTime = new Label()
    lblTime.Parent = me
    lblTime.Size = new Size(200, 25)
    lblTime.Location = new Point(20,20)
    lblTime.BorderStyle = BorderStyle.FixedSingle
    lblTime.TextAlign = ContentAlignment.MiddleCenter

    dim t as new Timer()
    t.Interval = 100
    t.Start()
    AddHandler t.Tick, AddressOf t_Tick
  end sub

  public shared sub Main() 
    Application.Run(new Timers())
  end sub

  private sub t_Tick(ByVal sender as object,ByVal e as EventArgs)
    lblTime.Text = DateTime.Now.ToString("dddd, MMMM d, yyyy  h:mm:ss tt")
  end sub
end class








14.14.LinkLabel
14.14.1.Get LinkData from LinkLabelGet LinkData from LinkLabel
14.14.2.LinkLabel local actionLinkLabel local action
14.14.3.LinkArea in LinkLabelLinkArea in LinkLabel
14.14.4.Link AddLink Add
14.14.5.Multiple links and generic handlerMultiple links and generic handler
14.14.6.Using LinkLabels to create hyperlinksUsing LinkLabels to create hyperlinks
14.14.7.Load File ExploreLoad File Explore
14.14.8.Load BrowserLoad Browser
14.14.9.Load Window ApplicationLoad Window Application
14.14.10.Set Label Border styleSet Label Border style
14.14.11.Set LinkLabel ImageListSet LinkLabel ImageList
14.14.12.LinkLabel: LinkArea, LinkColor, VisitedLinkColor, ActiveLinkColorLinkLabel: LinkArea, LinkColor, VisitedLinkColor, ActiveLinkColor