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
Explain the "cursortype" and "Locktype" in VB?
What is the use of parameters collection?
What is ado in vb?
How can you determine performance standards?
How can I change the printer Windows uses in code without using the print common dialog? How can I change orientation?
what are the Differenct Types of Procedures in VB?
How do you zoom in visual basic?
How many ways we can access file using VB?
With in the form we want to check all the text box control are typed or not? How?
How would you create Visual basic Document file?
Draw Sequence Modal of RDO? Explain.
Is there any Edit method in ADO Data Access method?
How would you use ActiveX Dll and ActiveX Exe in your application?
What are the uses of List View Control?
What is Pseudocode?