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

What are some methods you can use to send data from one VB executable to another one?

2241


how a multiple routing works ?

2884


How do I do Peek and Poke and other low-level stuff?

1468


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

1962


What is data binding in vb net?

987


Write the steps in Creating ActiveX Dll and Active Exe?

2072


How many ways we can access file using VB?

2225


Whether HTML supports multimedia: and document links?

1866


What is "NULL"?

1471


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

2090


How to down load image properties.

1058


What is "Reserved Error -1209"?

2082


Is visual basic easy?

1019


How do I call help files from a VB program?

1425


What is the difference between change event in normal combobox and dbcombobox?

2183