473,464 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Automating Applications Question

I am trying to start the default e-mail browser automatically from a menu
item click. The code works for the web browser but not for e-mail.

This is the sample for web browser that works

Private Sub MenuItem25_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem25.Click

System.Diagnostics.Process.Start("http://www.company.com")

End Sub

This does not

Private Sub MenuItem26_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem26.Click

System.Diagnostics.Process.Start("sa***@company.co m")

End Sub

I am not sure what is wrong. Please help

Thanks Perry Langla

Dec 10 '07 #1
3 1177

"plangla" <pl*****@hotmail.comwrote in message
news:58**********************************@microsof t.com...
>I am trying to start the default e-mail browser automatically from a menu
item click. The code works for the web browser but not for e-mail.

This is the sample for web browser that works

Private Sub MenuItem25_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem25.Click

System.Diagnostics.Process.Start("http://www.company.com")

End Sub

This does not

Private Sub MenuItem26_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem26.Click

System.Diagnostics.Process.Start("sa***@company.co m")

End Sub

I am not sure what is wrong. Please help

Thanks Perry Langla
Problem is that system does not have a default for sa***@company.com.

To see this start button run and then type in the address. You will get the
message that windows does not know what to do with it. Now put
mailto:sa***@company.com and it should start a new message in your mail
program.

The version of Process.Start you are using assumes that a filename /URL will
have a default program associated with it. mailto: is an association in
most windows environments.

Hope this helps
Lloyd Sheen

Dec 10 '07 #2
"plangla" <pl*****@hotmail.comwrote in news:5804C8F0-CBE4-45F9-9995-
21**********@microsoft.com:
This does not

Private Sub MenuItem26_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem26.Click

System.Diagnostics.Process.Start("sa***@company.co m")

End Sub
try: System.Diagnostics.Process.Start("mailto:sa***@com pany.com")
--
sp**********@rogers.com (Do not e-mail)
Dec 10 '07 #3
Thanks Guys that did the trick.
"Spam Catcher" <sp**********@rogers.comwrote in message
news:Xn**********************************@127.0.0. 1...
"plangla" <pl*****@hotmail.comwrote in news:5804C8F0-CBE4-45F9-9995-
21**********@microsoft.com:
>This does not

Private Sub MenuItem26_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem26.Click

System.Diagnostics.Process.Start("sa***@company.c om")

End Sub

try: System.Diagnostics.Process.Start("mailto:sa***@com pany.com")
--
sp**********@rogers.com (Do not e-mail)
Dec 11 '07 #4

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

Similar topics

12
by: Jerry Weinstein | last post by:
Hi, I know about stored procedures and that they can speed up data entry via the SQL 'insert ' statement. However, one drawback to this method is that using the stored procedure still requires...
1
by: SkunkDave | last post by:
Is there a script anyone has that will automate the addition of an access database to the OBDC datasources in control panel. Thanks
6
by: Charles Banas | last post by:
weird subject - i hope more than just one curious regular will hear me out. :) ok, i've got a bit of a big problem, and i need answers as soon as possible. i know this forum is meant for web...
7
by: xzzy | last post by:
I need to automate a report in a different database (and thank yous to Terry Kreft for pointing me in the right direction). below is the code with the one line that does not work, marked: 'Does...
1
by: EnriqueM | last post by:
One question: I created an access database that has been extremely useful in my work. I dont' even know at what level of knowledge I am at. I read a lot about how to create a database, created many...
4
by: ColinWard | last post by:
Hello again. I am trying to figure out how to link a picture to a record from code. I have figured out how to get the proper dialogue box to open but I still have to manually check off the Link...
0
by: Shamil Salakhetdinov | last post by:
Hi All, Have anybody seen somewhere techniques like the one described here: Automating Windows Applications http://www.thecodeproject.com/com/automatingwindowsapps.asp but for managed...
4
by: Supa Hoopsa | last post by:
I am in the process of rewriting an MS Access application (access front end with SQL 2k database) in VB.NET and one of the things I would like to do is link in to the compiled Access ADE so that I...
2
by: Sasie7679 | last post by:
Hi, 1. We have a requirement to open applications using VB and showing it within a container. Is it possible to automate applications using VB (i.e Acrobat reader, Paint, Word etc)? It can be any...
3
by: sportygeek3 | last post by:
Hi All, I am looking for a way to automate other applications programatically. Is there any C# library that will allow me to do this? i.e. I want to be able to iterate the menu items on...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.