What does Query_unload event do in VB? Why we need Form
_unload event?
Answers were Sorted based on User's Feedback
Answer / amirthraj
Query_Unload event is fired, when the form is actually
preparing for unload. Whereas Form_Unload is triggered when
form is unloaded. It's possible to stop the form unload
from Query_Unload event by setting its Cancel argument to
True.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / 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 |
To populate a single column value which dbcontrols you to use?
What is meant by Establish Connection in RDO? 74.1s it possible to Access BackEnd procedures? Explain.
What are the Technologies for Accessing Database from Visual Basic?
what is the control used to call a windows application.
How would you navigate between one document to another document
What are the differences between a standard module and a class module?
Which controls can not be placed in MDI?
How many max. number of controls can place in one form (especially visual basic form)?
What are the scope of the class?
What are 3 main differences between flexgrid control and dbgrid control?
Dim x, y as integer. What is x and y data type?
which arguments will be used to run a executable program in shell function ?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)