trap system shutdown

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pravin kumar S
    New Member
    • Jul 2008
    • 3

    trap system shutdown

    I Devlop one window appliction so in the window cross(X) buton the application asking about the password if it match the close window else give the error..
    so when i went to client the client ask me if computer is going shut down due to some reason in this case password should not varify ...so how to trap this problem
  • pravin kumar S
    New Member
    • Jul 2008
    • 3

    #2
    systm trap

    I Devlop one window appliction so in the window cross(X) buton the application asking about the password if it match the close window else give the error..
    so when i went to client the client ask me if computer is going shut down due to some reason in this case password should not varify ...so how to trap this problem

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      In the form_closing event that gets thrown, there is a "CloseReaso n" property in the FormClosingEven tArgs. This will tell you if the "computer is shutting down" or if the user "clicked the X" and other possible reasons to close.

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        kindly post your problem clearly. i am unable to understand .

        Comment

        • pravin kumar S
          New Member
          • Jul 2008
          • 3

          #5
          traps the appliction

          hi

          i am doing one project in .net in case of
          closeing the form i defind the password means
          any unauthories person can not close the application.
          .but in case of computer going shutdown ,.... the applicttion are still
          running in such case the computer is asking about the application password ..
          such in case i want to avoid the asking the password and appliction close down
          without ask the password ...

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            He's posted it twice already in the .NET forum.
            If you move it over there, I'll merge it with the rest.

            Comment

            • Plater
              Recognized Expert Expert
              • Apr 2007
              • 7872

              #7
              Threads Merged.
              Please do not double post your questions, it's against the posting guidelines.

              MODERATOR

              Comment

              • Curtis Rutland
                Recognized Expert Specialist
                • Apr 2008
                • 3264

                #8
                So far you have triple posted your question in more than one forum. If you can't find your original post, look in My Subscriptions or keep searching the forum, but do not post multiple copies of your question.

                MODERATOR

                Comment

                Working...