Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Visual Basic only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Visual Basic
Message box help
Message box help
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
codeman54
New Member
Join Date:
Jan 2007
Posts:
18
#1
Message box help
Jan 29 '07, 05:48 PM
I have a message box that comes up when the form loads. i want the program to shut down if they click no. How is this done?
iburyak
Recognized Expert
Top Contributor
Join Date:
Nov 2006
Posts:
1016
#2
Jan 29 '07, 07:36 PM
Try something like this:
[PHP]
Dim Ret As VbMsgBoxResult
Ret = MsgBox("some message", vbYesNo)
If Ret = vbNo Then End[/PHP]
Comment
Post
Cancel
Killer42
Recognized Expert
Expert
Join Date:
Oct 2006
Posts:
8429
#3
Jan 30 '07, 12:46 AM
If this is VB6, don't make the same mistake I did, and try to
Unload
the form from the
Load
event - it crashes VB. :(
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment