stop the VS.NET Window from closing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Saradhi

    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?


  • Roman S. Golubin

    #2
    Re: stop the VS.NET Window from closing


    Hi, Saradhi
    [color=blue]
    > 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[/color]
    tries to close the VS.NET window.[color=blue]
    > I want to check some conditions and if those conditions doesnt meet, then[/color]
    I want to stop the VS.NET window[color=blue]
    > from closing.
    >
    > Anybody have any diea?[/color]

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



    Comment

    • Saradhi

      #3
      Re: stop the VS.NET Window from closing

      where is the form here?
      I am talking of stopping the VS.NET window from closing inside my Add-In.
      "Roman S. Golubin" <nospam.golubin r@arhcity.ru> wrote in message news:c1kce9$lgc $1@arhadm.atnet .ru...

      Hi, Saradhi
      [color=blue]
      > 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[/color]
      tries to close the VS.NET window.[color=blue]
      > I want to check some conditions and if those conditions doesnt meet, then[/color]
      I want to stop the VS.NET window[color=blue]
      > from closing.
      >
      > Anybody have any diea?[/color]

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




      Comment

      • Roman S. Golubin

        #4
        Re: stop the VS.NET Window from closing


        Hi, Saradhi!
        [color=blue]
        > where is the form here?
        > I am talking of stopping the VS.NET window from closing inside my Add-In.[/color]

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



        Comment

        Working...