|
-
Jul 5th, 2001, 08:15 AM
#1
Thread Starter
New Member
VB Executable
Hi,
Can anyone tell me how to have a VB executable open automatically once the Save As dialog box is closed.
Also is there a way of 1) copying the file name from the Save As dialog box and inputting it into a text box on a different form and 2) how to set up a VB executable so that it sits in the systems tray when inactivate.
Thanks,
Cormac.
-
Jul 5th, 2001, 08:30 AM
#2
To open an EXE after the Save As dialog box is dismissed, just use the Shell statement after your ShowSave statement, e.g:
VB Code:
On Error Resume Next
CmDlg.CancelError = True
CmDlg.ShowSave
If Err <> 32755 Then
Shell "C:\MyApp.exe", 1
End If
To copy the filename, just assign it like you would normally do:
VB Code:
On Error Resume Next
CmDlg.CancelError = True
CmDlg.ShowSave
If Err <> 32755 Then
Form2.txtFileName = CmDlg.filename
End If
-
Jul 5th, 2001, 08:34 AM
#3
See this tip for adding your program to the system tray.
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
|