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

____ property is used to lock a textbox to enter a datas.

1181


How do you create a form in visual basic?

492


which property is used to change to some value to access a identity column in datacontrols?

1366


Is visual basic easy?

556


Which language is used in visual basic?

501






What is executenonquery in vb net?

521


Explain about conditional operators?

583


Explain Default cursor Type and LockEdit type in DAO?

701


What is the use of parameters collection?

1561


___ Property is used to count no. of items in a combobox.

972


what is use of book mark in excel ? send answer in my id ashishpal11@rediffmail.com

1741


how to make unlimited id(1rimjim,2rimjim,3rimjim....etc) login grp chat pogram for jabber?

1993


How would you create properties in ActiveX Control?

1447


How can you check whether a record is valid record or Invalid record using ADO control or Object?

1411


Is it possible to change menu runtime using API? If yes Specify the function names?

1470