PC Review


Reply
Thread Tools Rate Thread

How do I call a URL or email from a WinForms LinkLabel control?

 
 
Aaron Ackerman
Guest
Posts: n/a
 
      12th Dec 2003

How do I call a URL or email address from a WinForms LinkLabel control?


 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      12th Dec 2003
Hi,

Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles
LinkLabel1.LinkClicked

' Default email program

Process.Start("Mailto:(E-Mail Removed)")

' or URL

Process.Start("http:\\msdn.microsoft.com")

End Sub


Ken
----------------
"Aaron Ackerman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> How do I call a URL or email address from a WinForms LinkLabel control?
>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      13th Dec 2003
* "Aaron Ackerman" <(E-Mail Removed)> scripsit:
> How do I call a URL or email address from a WinForms LinkLabel control?


\\\
using System.Diagnostics;
..
..
..
Dim psi As New ProcessStartInfo()
psi.UseShellExecute = True
psi.FileName = "http://www.mvps.org"
Process.Start(psi)
///

In order to send a mail, use something like "private.php?do=newpm&u=".

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
Aaron Ackerman
Guest
Posts: n/a
 
      14th Dec 2003
Thanks, is there anyway to pass parameters with this method call?


"Ken Tucker [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e

As
> System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles
> LinkLabel1.LinkClicked
>
> ' Default email program
>
> Process.Start("Mailto:(E-Mail Removed)")
>
> ' or URL
>
> Process.Start("http:\\msdn.microsoft.com")
>
> End Sub
>
>
> Ken
> ----------------
> "Aaron Ackerman" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >
> > How do I call a URL or email address from a WinForms LinkLabel control?
> >
> >

>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      14th Dec 2003
* "Aaron Ackerman" <(E-Mail Removed)> scripsit:
> Thanks, is there anyway to pass parameters with this method call?


Parameters to what? The URL? Just add them to the URL like in a
webbrowser.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LinkLabel control in CF RonG Microsoft Dot NET Compact Framework 13 12th Aug 2008 07:42 PM
Re: CF2.0 LinkLabel Control Not Firing Click Event Tim Brooks Microsoft Dot NET Compact Framework 1 20th Sep 2005 04:15 AM
Re: CF2.0 LinkLabel Control Not Firing Click Event Tim Brooks Microsoft Dot NET Compact Framework 0 17th Sep 2005 06:32 AM
Can I call a .Net winforms user control in VB6 winForm? =?Utf-8?B?ZGR0?= Microsoft VB .NET 1 3rd Feb 2005 04:02 PM
Winforms LinkLabel Exception ~ 32 Link Maximum Jason Microsoft Dot NET Framework Forms 1 11th Jun 2004 07:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:16 AM.