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
1.What are the Feactures visual data manager 2.Short note on visual data manager 3.What is data control,its work,properties,methods 4.Needs for OLEDB in vb 5.LIst steps involved in generating christal report 6.What is a recordset 7.Diffrence between RDO and ADO 8.What is an Activex control 9.Advantages of ADO over data control 10.Diffrence between model and modeless form 11.What is the significance of debug window 12.Diffrence between single document and multiple document 13.Explain data report
Is it possible to Access BackEnd procedures?
How many ways you can access file using VB?
How do you avoid the "Invalid use of null" error when reading null values from a database?
Is visual basic easy?
How would you convert a form into document?
What is ActiveX? Explain.
How do I make a text box not beep but do something else when I hit the Enter key?
Explain what is Visual basic?
What are the scope of the class?
What is OLEDB?
What is the use of NEW Keyword? Explain.
How to find size of the file. Which method or function is used to occomplish this?
Is visual basic case sensitive?
Explain about the creation of EXE files with Visual Basic?