473,386 Members | 1,699 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,386 software developers and data experts.

E-mail format

Hi,
I've a textbox bound to a field that contains an email address,
I like to give it an email address format , so it will be highlighted and
the user can click on it to open Outlook.
How is it possible in VB.net.

Thanks.

Nov 20 '05 #1
8 5171
Use a linklabel control, see your toolbar . . .
--
Regards - One Handed Man

Author : Fish .NET & Keep .NET
=========================================
This posting is provided "AS IS" with no warranties,
and confers no rights.
"touf" <to******@hotmail.com> wrote in message
news:Ow**************@TK2MSFTNGP09.phx.gbl...
Hi,
I've a textbox bound to a field that contains an email address,
I like to give it an email address format , so it will be highlighted and
the user can click on it to open Outlook.
How is it possible in VB.net.

Thanks.

Nov 20 '05 #2
Nak
> I've a textbox bound to a field that contains an email address,
I like to give it an email address format , so it will be highlighted and
the user can click on it to open Outlook.
How is it possible in VB.net.


Hi there,

I have done this quite a few times, it's very easy to do, make a link
label as Armin suggests and put this code in the click event,

Call System.Diagnostics.Process.Start(mailto:yo*@yourem ail.com)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #3
Nak
> Erm. . . When did I become Armin ???

Woops again, sorry I had just replied to one of Armin's posts and currently
my OE listview columns are so wide I can only see the Subject column. That
was from all of these long posts, sorry, no offence meant of course ;-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #4
Thanks firends,
but I need a textBox not a label, I mean that the user has to enter the
value (theb email addresses of the customers)
In another place the email is inside a datagrid.

Any help please.

"Nak" <a@a.com> wrote in message
news:u8**************@TK2MSFTNGP10.phx.gbl...
I've a textbox bound to a field that contains an email address,
I like to give it an email address format , so it will be highlighted and the user can click on it to open Outlook.
How is it possible in VB.net.
Hi there,

I have done this quite a few times, it's very easy to do, make a link
label as Armin suggests and put this code in the click event,

Call System.Diagnostics.Process.Start(mailto:yo*@yourem ail.com)

Nick.

--

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ "No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Nov 20 '05 #5
Nak
Well place the code inside of a button then maybe? The code

Call System.Diagnostics.Process.Start(mailto:yo*@yourem ail.com)

Simply shows how to launch the default MAPI email client with the specified
email address in the title. Where you implement this is up to you, choices
choices :-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"touf" <to******@hotmail.com> wrote in message
news:et**************@TK2MSFTNGP10.phx.gbl...
Thanks firends,
but I need a textBox not a label, I mean that the user has to enter the
value (theb email addresses of the customers)
In another place the email is inside a datagrid.

Any help please.

"Nak" <a@a.com> wrote in message
news:u8**************@TK2MSFTNGP10.phx.gbl...
I've a textbox bound to a field that contains an email address,
I like to give it an email address format , so it will be highlighted and the user can click on it to open Outlook.
How is it possible in VB.net.


Hi there,

I have done this quite a few times, it's very easy to do, make a link label as Armin suggests and put this code in the click event,

Call System.Diagnostics.Process.Start(mailto:yo*@yourem ail.com)

Nick.

--

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\


Nov 20 '05 #6
"One Handed Man" <te***************************@BTOpenworld.com> schrieb:
Use a linklabel control, see your toolbar . . .


"Toolbox".

;-)

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #7
Thanks.
"Nak" <a@a.com> wrote in message
news:e5**************@TK2MSFTNGP09.phx.gbl...
Well place the code inside of a button then maybe? The code

Call System.Diagnostics.Process.Start(mailto:yo*@yourem ail.com)

Simply shows how to launch the default MAPI email client with the specified email address in the title. Where you implement this is up to you, choices choices :-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ "No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ "touf" <to******@hotmail.com> wrote in message
news:et**************@TK2MSFTNGP10.phx.gbl...
Thanks firends,
but I need a textBox not a label, I mean that the user has to enter the
value (theb email addresses of the customers)
In another place the email is inside a datagrid.

Any help please.

"Nak" <a@a.com> wrote in message
news:u8**************@TK2MSFTNGP10.phx.gbl...
> I've a textbox bound to a field that contains an email address,
> I like to give it an email address format , so it will be highlighted
and
> the user can click on it to open Outlook.
> How is it possible in VB.net.

Hi there,

I have done this quite a few times, it's very easy to do, make a link label as Armin suggests and put this code in the click event,

Call System.Diagnostics.Process.Start(mailto:yo*@yourem ail.com)

Nick.

--

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ "No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\



Nov 20 '05 #8
Well, I suppose you could get down and dirty and subclass a text box to
print a 'linklabel' inside itself if the text is formatted as an email. Or,
override the paint events to draw it yourself.

But, I would really go with the button to the side of the text box as a
cleaner solution. For instance, clicking on the email address launches
Outlook, then what happens if they mistyped and want to modify the middle of
the email address, clicking in the middle would always launch Outlook.

"touf" <to******@hotmail.com> wrote in message
news:O5**************@tk2msftngp13.phx.gbl...
Thanks.
"Nak" <a@a.com> wrote in message
news:e5**************@TK2MSFTNGP09.phx.gbl...
Well place the code inside of a button then maybe? The code

Call System.Diagnostics.Process.Start(mailto:yo*@yourem ail.com)

Simply shows how to launch the default MAPI email client with the

specified
email address in the title. Where you implement this is up to you,

choices
choices :-)

Nick.

--

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"touf" <to******@hotmail.com> wrote in message
news:et**************@TK2MSFTNGP10.phx.gbl...
Thanks firends,
but I need a textBox not a label, I mean that the user has to enter the value (theb email addresses of the customers)
In another place the email is inside a datagrid.

Any help please.

"Nak" <a@a.com> wrote in message
news:u8**************@TK2MSFTNGP10.phx.gbl...
> > I've a textbox bound to a field that contains an email address,
> > I like to give it an email address format , so it will be highlighted and
> > the user can click on it to open Outlook.
> > How is it possible in VB.net.
>
> Hi there,
>
> I have done this quite a few times, it's very easy to do, make a

link
> label as Armin suggests and put this code in the click event,
>
> Call System.Diagnostics.Process.Start(mailto:yo*@yourem ail.com)
>
> Nick.
>
> --
>

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
> "No matter. Whatever the outcome, you are changed."
>
> Fergus - September 5th 2003
>

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
>
>



Nov 20 '05 #9

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

Similar topics

8
by: unndunn | last post by:
I'm trying to design a regular expression that matches (using preg_match()) when a string is a well-formed Email address. So far I have this: /^+@+\.{2,4}$/i I got that from...
14
by: nagual | last post by:
Can anyone please help me with a regular expression to test for Valid International Email Addresses? Also, which version of javascript (1.2 ?) is needed for same? Thanks. Regards.
0
by: met | last post by:
I want to have the python equivalent function of this (that checks email format) function CheckEmail($Email = "") { if (ereg("]+@]+\.]+", $Email)) { return true; } else { return false; }
3
by: Andrew J | last post by:
Hi all Would really appreciate if someone can help mi with a problem I've been having with ASP generated emails. In fact, this might be a question more related to Outlook than ASP, but in any case...
3
by: seash | last post by:
H i need to validate a textBox.text containing a email address the enterd email address text into the textbox needs to be validated for correct forma example : xyz@abcd.co how to validate...
7
by: ad | last post by:
Hi, As title, How to determine if a string is an EMail account?
2
by: Jon | last post by:
I am sending an email from my site , but the formatting of the email is all wrong when the user gets the email. I'm just sending plain text as the body. The problem is that line returns do not...
19
by: 叮叮当当 | last post by:
hi, all when a email body consist with multipart/alternative, i must know when the boundary ends to parse it, but the email lib have not provide some function to indicate the boundary end,...
11
by: rote | last post by:
I'm getting the email address from an excel sheet. But i need to send the email to multiple people When printing the below i get a@a.com;b@b.com;; But i want a@a.com;b@b.com; i don't need...
1
by: developing | last post by:
Hi, Please bear with me if this sounds like a non-intuitive question. Anyone have any insights as to how System.Net.MailMessage class is implemented? Does it construct a simple C/MIME string...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.