|
-
Jul 31st, 2000, 10:43 PM
#1
Thread Starter
Member
I want to launch the default mail client and send a message from Vb,
I tried the following code:
Shell "Start.exe mailto:[email protected]", vbHide
and als0
Shell "Start mailto:[email protected]", vbhide
Neither of these work (I am using Windows 2k)
-Chris
-
Jul 31st, 2000, 11:48 PM
#2
New Member
Well, the code works. Are you sure that you want the window to be hide?
-
Jul 31st, 2000, 11:50 PM
#3
Thread Starter
Member
The code doesn't work in Windows 2000, no command (:
But I have start.exe from Win98 that I will distribute with my program, so that win 2000 users can use the command. The vbHide command makes the dos shell window hide.
Thanks
-Chris
-
Aug 1st, 2000, 12:02 AM
#4
Hyperactive Member
I'm pretty sure that this works with NT, but I don't work on 2000, so I can't be sure this will help. On NT, this will just shell whatever default mail client you happen to have on your system.
Code:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SW_NORMAL = 1
Private Sub Command1_Click()
Dim lret As Long
lret = ShellExecute(0&, "open", "mailto:[email protected]", vbNullChar, vbNullChar, SW_NORMAL)
End Sub
-
Aug 1st, 2000, 12:05 AM
#5
Thread Starter
Member
Does this shell command also work in win98?
-
Aug 1st, 2000, 12:47 AM
#6
Fanatic Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|