Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Can any one please suggest which institute is providing Advance Excel & VBA Macros in Excel training in Hyderabad.

2111


Types of LockEdits in DAO? 51 .Types of Recordsets.

1841


which property used to add a menus at runtime?

1999


It possible to call OLEDB?s Features directly in VB without using any control?

2044


How can you Navigate from the DHTML application to another DHTML application? .

2156


Can you create a tabletype of recordset in Jet connected ODBC dbengine.

1918


What is the use of Data Form Wizard?

1975


How do I dial a phone number without using the MSCOMM VBX?

1998


what are the types of LockEdits in DAO?

2041


How do I use GetPrivateProfileString to read from INI files?

1369


How many objects resides in ADO ?

1919


Write the steps in Creating ActiveX Dll and Active Exe?

2018


Through which protocol OLEDB components are interfaced?

2133


How many ways we can access file using VB?

2174


How would you attach pictures in column headers of List View Control?

2054