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
Draw Sequence Modal of RDO? Explain.
What is the use of property page Wizard in ActiveX Control?
What is the Windows API?
how to use telugu language in vb6? any unicode data is available for telugu or not?yes means how to use? my desired output is telugu only? i am doing project like(telugu calendar),my output should be print in telugu only? pls send me the solution with code?
How would you create properties by using class Builder Wizard?
What are the Internet tools available in VB 6.0?
How do I access C style strings?
How can I speed up my VB database application?
Explain about creating VB applications in excel?
It possible to call OLEDB?s Features directly in VB without using any control?
How to control the file?
Is it posible to Create Tables Through Querydef?
Explain the differences between ActiveX Dll and ActiveX Exe?
What's the difference between MODAL and MODELESS forms?
what are the types of cursors in DAO?