473,587 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
+ 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_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MenuItem25.Clic k

System.Diagnost ics.Process.Sta rt("http://www.company.com ")

End Sub

This does not

Private Sub MenuItem26_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MenuItem26.Clic k

System.Diagnost ics.Process.Sta rt("sa***@compa ny.com")

End Sub

I am not sure what is wrong. Please help

Thanks Perry Langla

Dec 10 '07 #1
3 1183

"plangla" <pl*****@hotmai l.comwrote in message
news:58******** *************** ***********@mic rosoft.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_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MenuItem25.Clic k

System.Diagnost ics.Process.Sta rt("http://www.company.com ")

End Sub

This does not

Private Sub MenuItem26_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MenuItem26.Clic k

System.Diagnost ics.Process.Sta rt("sa***@compa ny.com")

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.c om.

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***@co mpany.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*****@hotmai l.comwrote in news:5804C8F0-CBE4-45F9-9995-
21**********@mi crosoft.com:
This does not

Private Sub MenuItem26_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MenuItem26.Clic k

System.Diagnost ics.Process.Sta rt("sa***@compa ny.com")

End Sub
try: System.Diagnost ics.Process.Sta rt("mailto:sa** *@company.com")
--
sp**********@ro gers.com (Do not e-mail)
Dec 10 '07 #3
Thanks Guys that did the trick.
"Spam Catcher" <sp**********@r ogers.comwrote in message
news:Xn******** *************** ***********@127 .0.0.1...
"plangla" <pl*****@hotmai l.comwrote in news:5804C8F0-CBE4-45F9-9995-
21**********@mi crosoft.com:
>This does not

Private Sub MenuItem26_Clic k(ByVal sender As System.Object, ByVal e As
System.EventAr gs) Handles MenuItem26.Clic k

System.Diagnos tics.Process.St art("sa***@comp any.com")

End Sub

try: System.Diagnost ics.Process.Sta rt("mailto:sa** *@company.com")
--
sp**********@ro gers.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
3205
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 one to manually and individually enter each and every record to be inserted to the database before the procedure is executed. I want to circumvent...
1
6897
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
4335
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 developers, but is relevant discussion. i'm not OT here unless someone thinks i'm trolling (which i'm not, obviously). then i'll disappear and...
7
2620
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 not Work' It appears that the type of object returned from the "AllReports" collection is not a report object. =>> I need it to be an object of...
1
2040
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 tables, connected them and then created different kinds of queries. (One thing I have never done is reports, because I really don't need them) I...
4
1915
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 checkbox. Is there a way to automate the checking of this box? I am not doing any of this through code because when I tried that, I could not make...
0
1374
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 WinForms application? Basically what is needed:
4
3219
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 can use the reports that have already been created. I have somewhere in the region of 200 reports already created in MS Access and I really don't want...
2
1966
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 application. When a user provides a particular file name, the file contents should be shown within the container using the corresponding application...
3
2517
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 another application and send a mouse click to each one. Thanks,
0
7918
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7843
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8206
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6621
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3840
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.