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
How to prevent closing a form Using Closing Button Of a Vb Form
How to prevent closing a form Using Closing Button Of a Vb Form
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
Ravi Dwivedi
#1
How to prevent closing a form Using Closing Button Of a Vb Form
Sep 29 '10, 03:44 PM
I am Software Engineer and Want to Enforce In Our Visual BAsic Project
nibir
#2
Nov 3 '10, 10:35 AM
Private Sub Form_QueryUnloa d(Cancel As Integer, UnloadMode As Integer)
If MsgBox("Do you want to close the form ?", vbYesNo + vbDefaultButton 2) = vbYes Then
Cancel = 0
Else
Cancel = 1
End If
End Sub
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment