Close

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

    #1

    Close

    in the event closed how i can stop the closed ? i want a confirm before
    (and when they click the cross close too)

  • Siva M

    #2
    Re: Close

    In Windows Forms? If so, handle the Closing event. To prevent closing, set
    the CancelEventArgs 's Cancel property to true.

    Here is the documentation for the same:
    http://msdn.microsoft.com/library/de...losedtopic.asp

    "ucasesoftw are" <ucasesoftware@ hotmail.fr> wrote in message
    news:1130433920 .142902.250280@ f14g2000cwb.goo glegroups.com.. .
    in the event closed how i can stop the closed ? i want a confirm before
    (and when they click the cross close too)


    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: Close

      "ucasesoftw are" <ucasesoftware@ hotmail.fr> schrieb:[color=blue]
      > in the event closed how i can stop the closed ? i want a confirm before
      > (and when they click the cross close too)[/color]

      Use the 'Closing' event instead and set 'e.Cancel' to 'True' to cancel
      closing.

      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://classicvb.org/petition/>

      Comment

      Working...