What is the difference between queryunload and unload in form?

Answers were Sorted based on User's Feedback



What is the difference between queryunload and unload in form?..

Answer / vairamuthu

Query_Unload will execute first when unload the form. We
can stop the execution of the form_Unload method when we
set cancel = 1 in queryunload method.

Is This Answer Correct ?    3 Yes 0 No

What is the difference between queryunload and unload in form?..

Answer / rajnish tyagi

Both events allow the unload to be cancel, however only the QueryUnload event actually provides the cause for the unload - check the UnloadMode parameter for values such as vbFormCode and vbFormControlMenu. More details can be found by looking up the events in your MSDN library.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Visual Basic Interview Questions

What are the new events in textbox that has been included in VB6.0

1 Answers  


What is the difference between a Sub and a Function?

3 Answers  


What is the difference between ANSI and UNICODE strings when passed as arguments to a DLL?

3 Answers  


Is there a way to break long lines in VB code?

0 Answers  


What is meant by Establish Connection in RDO? 74.1s it possible to Access BackEnd procedures? Explain.

0 Answers  






what is the Property used to count number of items in a combobox?

1 Answers  


What is the statement to extract 4 characters from the middle of a string?

1 Answers  


What is Static Cursor?

1 Answers  


Explain about control properties?

0 Answers  


Discuss the working with to-do lists.

0 Answers  


How do I implement Undo?

0 Answers  


What is the difference between Object and Class?

6 Answers  


Categories