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
Can any one please suggest which institute is providing Advance Excel & VBA Macros in Excel training in Hyderabad.
Types of LockEdits in DAO? 51 .Types of Recordsets.
which property used to add a menus at runtime?
It possible to call OLEDB?s Features directly in VB without using any control?
How can you Navigate from the DHTML application to another DHTML application? .
Can you create a tabletype of recordset in Jet connected ODBC dbengine.
What is the use of Data Form Wizard?
How do I dial a phone number without using the MSCOMM VBX?
what are the types of LockEdits in DAO?
How do I use GetPrivateProfileString to read from INI files?
How many objects resides in ADO ?
Write the steps in Creating ActiveX Dll and Active Exe?
Through which protocol OLEDB components are interfaced?
How many ways we can access file using VB?
How would you attach pictures in column headers of List View Control?