| View previous topic :: View next topic |
| Author |
Message |
steph Freshman
Joined: 13 Sep 2004 Posts: 28
|
Posted: Sep 13th, 2004 02:26 AM Post subject: opening applications |
|
|
Hello
I wanted to know if it was possible to create a command button and when clicked on, it would open MSN Messenger or Yahoo Messenger.
Any help would be greatly appreciated
Thanks
steph |
|
| Back to top |
|
Avis Junior Poster

Joined: 07 Oct 2003 Posts: 510 Location: India
|
|
| Back to top |
|
steph Freshman
Joined: 13 Sep 2004 Posts: 28
|
Posted: Sep 13th, 2004 02:42 AM Post subject: |
|
|
Thank you very much for your quick reply.  |
|
| Back to top |
|
Avis Junior Poster

Joined: 07 Oct 2003 Posts: 510 Location: India
|
|
| Back to top |
|
rbgCODE Regular
Joined: 11 Nov 2004 Posts: 54 Location: Manchester CT
|
Posted: Nov 15th, 2004 10:35 PM Post subject: |
|
|
No offense, but shell is weak. You should use the registry to find the application associated with that application and open it that way. A good example is..
[vb:1:6511da50b6]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
Public Sub xstart(xpath As String)
Call ShellExecute(hwnd, "Open", xpath, "", App.Path, 1)
End Sub[/vb:1:6511da50b6] _________________ '><>
'rBg
'><> |
|
| Back to top |
|
Avis Junior Poster

Joined: 07 Oct 2003 Posts: 510 Location: India
|
|
| Back to top |
|
|