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


Please Help Members By Posting Answers For Below Questions

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

3803


Is it possible to Access BackEnd procedures?

1599


How many ways you can access file using VB?

578


How do you avoid the "Invalid use of null" error when reading null values from a database?

1124


Is visual basic easy?

545






How would you convert a form into document?

1375


What is ActiveX? Explain.

1457


How do I make a text box not beep but do something else when I hit the Enter key?

984


Explain what is Visual basic?

585


What are the scope of the class?

1542


What is OLEDB?

1916


What is the use of NEW Keyword? Explain.

1562


How to find size of the file. Which method or function is used to occomplish this?

1501


Is visual basic case sensitive?

608


Explain about the creation of EXE files with Visual Basic?

603