What does Query_unload event do in VB? Why we need Form
_unload event?
Answer Posted / parmanand
Query unload means your form is about to close but still not
closed.
Form _unload means your form is released from the memory and
its totally closed. Hence if you want to display any message
you will keep it in Query unload , form unload will not work.
Ex.
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode
As Integer)
MsgBox "do you want to close the form ?", vbYesNo
if vbno then
Cancel = True
end if
End Sub
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are some methods you can use to send data from one VB executable to another one?
how a multiple routing works ?
How do I do Peek and Poke and other low-level stuff?
Can you create a tabletype of recordset in Jet connected ODBC dbengine.
What is data binding in vb net?
Write the steps in Creating ActiveX Dll and Active Exe?
How many ways we can access file using VB?
Whether HTML supports multimedia: and document links?
What is "NULL"?
How would you attach pictures in column headers of List View Control?
How to down load image properties.
What is "Reserved Error -1209"?
Is visual basic easy?
How do I call help files from a VB program?
What is the difference between change event in normal combobox and dbcombobox?