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

Explain the "cursortype" and "Locktype" in VB?

4136


What is the use of parameters collection?

1827


What is ado in vb?

713


How can you determine performance standards?

792


How can I change the printer Windows uses in code without using the print common dialog? How can I change orientation?

1274


what are the Differenct Types of Procedures in VB?

1639


How do you zoom in visual basic?

716


How many ways we can access file using VB?

1782


With in the form we want to check all the text box control are typed or not? How?

1752


How would you create Visual basic Document file?

2103


Draw Sequence Modal of RDO? Explain.

1816


Is there any Edit method in ADO Data Access method?

1779


How would you use ActiveX Dll and ActiveX Exe in your application?

1732


What are the uses of List View Control?

1656


What is Pseudocode?

1127