I'm trying to create a link that is clickable, so that the e-mail program opens when the link is clicked. I found some information on how to do this here, but it's tailored to C#.
So far I have a Panel and the actual LinkLabel. But I don't know how to make the event happen that the e-mail client opens up:
Code:
# Panel X: About
$PanelAbout = New-Object System.Windows.Forms.Panel
$PanelAbout.Location = $PanelLocation
$PanelAbout.Size = $PanelSize
$PanelAbout.TabIndex = 8
$PanelAbout.BackColor = $PanelBackColor
$PanelAbout.BorderStyle = 'Fixed3D'
$Form.Controls.Add($PanelAbout)
$PanelAboutLinkLabel = New-Object System.Windows.Forms.LinkLabel
$PanelAboutLinkLabel.Location = New-Object System.Drawing.Point(8,8)
$PanelAboutLinkLabel.Size = New-Object System.Drawing.Size(300,20)
$PanelAboutLinkLabel.DisabledLinkColor = 'Blue'
$PanelAboutLinkLabel.VisitedLinkColor = 'Red'
$PanelAboutLinkLabel.LinkBehavior = 'HoverUnderline'
$PanelAboutLinkLabel.LinkColor = 'Navy'
$PanelAboutLinkLabel.Text = [email protected]
$PanelAbout.Controls.Add($PanelAboutLinkLabel)
Thank you for your help.