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
How would you use ActiveX Dll and ActiveX Exe in your application?
How can you Implement windows functionality in VB?
How would you attach pictures in Treeview Control?
Write the steps in Creating ActiveX Dll and Active Exe?
Draw Sequence Modal of RDO? Explain.
What are the types of line styles available in Treeview Control?
What is the use of Hyperlink control for DHTML applications?
Explain about ADO control?
What is the use of debug Window?
Binary Access-method isused to access file in which manner?
Is it possible to Access BackEnd procedures? Explain.
____ property of menu cannot be set at run time.
What is data binding in vb net?
Whether HTML supports multimedia: and document links?
Explain about form creation in Visual Basic?