|
-
Jun 21st, 2000, 10:42 PM
#1
Thread Starter
Addicted Member
On my application's form load, my app will say that it's been in use for, let's say 30 days and will be shut down.
But how can I do it? How do I simply TERMINATE the application? I tried exit sub but of course this won't terminate the application.
Thanks.
-
Jun 21st, 2000, 10:54 PM
#2
Frenzied Member
to terminate the program all you have to to is write:
Private Sub Command1_Click()
End
End Sub
NXSupport - Your one-stop source for computer help
-
Jun 21st, 2000, 10:55 PM
#3
You mean to exit a program? Use the End command.
Code:
Private Sub Form_Load()
End ' Exit the program
End Sub
-
Jun 21st, 2000, 11:07 PM
#4
Addicted Member
Most people tend to think this is the better way of ending a program.
Code:
Private Sub CloseAllForms()
Dim nForm As Form
For Each nForm In Forms
Unload nForm
Next
End Sub
It unloads all forms, thus ending the program.
Visual Basic 6 Enterprise Edition + SP4
-
Jun 22nd, 2000, 12:55 AM
#5
Lively Member
you can...
If you want the exit button to be in an adden button put this in.
Code:
Private Sub Command1_Click()
unload me 'exits the program
End Sub
Or you can just add
to anything you click on.
Timbudtwo
I have no life, only one with computers.
VB 6.0 Enterprise Edition
[hr]
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
|