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 |
When should we use recursive programming?
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).
Which language is used in visual basic?
___ property used to add a menus at runtime.
What is a thread pool and how are the threads within a thread pool managed?
What is Zorder Method?
Difference between listbox and combo box.
How would you Create a Query Builder and Explain its uses ?
What is the difference between Msgbox Statement and MsgboxQ function?
How many ways we can access file using VB?
How would you create Visual basic Document file?
Types of cursors in DAO?
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)