471,872 Members | 1,271 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,872 software developers and data experts.

stop the VS.NET Window from closing

Hi,

I wanted to stop the VS.NET Window from closing inside my C# AddIn.

I Know that OnBeginShutdown() funciton will be called whenever the user tries to close the VS.NET window.
I want to check some conditions and if those conditions doesnt meet, then I want to stop the VS.NET window from closing.

Anybody have any diea?
Nov 15 '05 #1
3 1814

Hi, Saradhi
I wanted to stop the VS.NET Window from closing inside my C# AddIn.

I Know that OnBeginShutdown() funciton will be called whenever the user tries to close the VS.NET window. I want to check some conditions and if those conditions doesnt meet, then I want to stop the VS.NET window from closing.

Anybody have any diea?


Use Form.Closing event. If you want cancel closing form then set event
CanceEventArgs parameter Cancel property to true.

Nov 15 '05 #2
where is the form here?
I am talking of stopping the VS.NET window from closing inside my Add-In.
"Roman S. Golubin" <no*************@arhcity.ru> wrote in message news:c1**********@arhadm.atnet.ru...

Hi, Saradhi
I wanted to stop the VS.NET Window from closing inside my C# AddIn.

I Know that OnBeginShutdown() funciton will be called whenever the user tries to close the VS.NET window. I want to check some conditions and if those conditions doesnt meet, then I want to stop the VS.NET window from closing.

Anybody have any diea?


Use Form.Closing event. If you want cancel closing form then set event
CanceEventArgs parameter Cancel property to true.


Nov 15 '05 #3

Hi, Saradhi!
where is the form here?
I am talking of stopping the VS.NET window from closing inside my Add-In.


Hmm... "VS.NET window"... What is this?

Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

31 posts views Thread by Benno Bös | last post: by
7 posts views Thread by Gayathri | last post: by
reply views Thread by Saradhi | last post: by
2 posts views Thread by Bob Cummings | last post: by
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.