473,382 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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


How do I call a URL or email address from a WinForms LinkLabel control?
Nov 20 '05 #1
4 17129
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:no@spam.com")

' or URL

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

End Sub
Ken
----------------
"Aaron Ackerman" <no@spam.com> wrote in message
news:O3**************@TK2MSFTNGP10.phx.gbl...

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

Nov 20 '05 #2
* "Aaron Ackerman" <no@spam.com> 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 "mailto:ba*@askjda.sad".

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
Thanks, is there anyway to pass parameters with this method call?
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:O5**************@TK2MSFTNGP12.phx.gbl...
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:no@spam.com")

' or URL

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

End Sub
Ken
----------------
"Aaron Ackerman" <no@spam.com> wrote in message
news:O3**************@TK2MSFTNGP10.phx.gbl...

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


Nov 20 '05 #4
* "Aaron Ackerman" <no@spam.com> 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>
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joe | last post by:
I'm putting a WinForms control on a web page and would like to display something letting the user know the control is being downloaded. Is there anyway to do this?
1
by: Joe | last post by:
I have a WinForms user control and I want to change the width using a client script on a when page. Can this be done? I was thinking something along the lines of: function resize() { var o =...
1
by: ddt | last post by:
I have an application which written by VB6, I want to add a user control on it, but the issue is the new control is written by VB.net, how can I apply it to my old Form? Thanks in advance.
2
by: pagates | last post by:
Hi All, I have developed a set of User Controls for an application that we would now like to backfill into a VB6 application. I believe that it is possible to create an ActiveX control out of...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
0
by: jonathan.beckett | last post by:
I have been working on a client project recently that is using winforms ..NET user controls within web pages in Internet Explorer, and need to find out how to make the user control communicate back...
2
by: Sara | last post by:
Hello there, Iam creating a user control with 2 buttons, And i have a public static variable i'll be changing the value of the variable in the button click events. When i consume the user...
5
by: David C | last post by:
Does anyone know how to email a web control filled with data to someone? I would like to email any web control (GridView, Calendar, etc.) to someone. Thanks. David
0
by: smithse | last post by:
Hello All, This is my very first posting on bytes!! Here's my "challenge": I have a winforms app (vb.net - 2008) that has a form with the webbrowser control (ie) on it. The page which I am...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.