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
DHTML Is used for what?
How would you create properties in ActiveX Control?
what are the Differences between Recordset and Resultsets?
How do I make the mouse cursor invisible/visible?
Types of cursors in RDO.
Explain about form creation in Visual Basic?
Explain the working of templates?
by writing MACRO CODE,i want to retrive data from one spead sheet to another UI (workbook). control will search cell by cell for each row and load the data in another workbook(UI). ex: custdetails custname lastname locaton mobile pincode custdetails raj tony hyd 555555 521245 servcreqrd srvce# srvcename location srvcepincode servcreqrd 754 drilling hyd 521784 for the above example in the another workbook retrive data like this custname Raj srvce# 754 srvcepincode 521784. while retrieving data control will search cell by cell for each row.
How would you convert a form into document?
Data Control missing from toolbox when I use VB under NT3.5. Why?
What are the types of line styles available in Treeview Control?
Write the Steps in Creating an ActiveX Control?
What is rdo in vb?
How would you map properties to controls by using ActiveX Control Interface Wizard?
how a multiple routing works ?