469,610 Members | 1,649 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,610 developers. It's quick & easy.

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 1714

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
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.