Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Idle processing in windows forms

Idle processing in windows forms

Scheduled Pinned Locked Moved C#
csharpwinformstutorialquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    saksp
    wrote on last edited by
    #1

    How to associate event handler with the Idle event in c#?

    thanks

    D L 2 Replies Last reply
    0
    • S saksp

      How to associate event handler with the Idle event in c#?

      thanks

      D Offline
      D Offline
      dataminers
      wrote on last edited by
      #2

      public static event EventHandler Idle private void Application_Idle(Object sender, EventArgs e) { MessageBox.Show("You are in the Application.Idle event."); }

      S 1 Reply Last reply
      0
      • D dataminers

        public static event EventHandler Idle private void Application_Idle(Object sender, EventArgs e) { MessageBox.Show("You are in the Application.Idle event."); }

        S Offline
        S Offline
        saksp
        wrote on last edited by
        #3

        I tried this. But with this how will it attach the Application_Idle to Applications Idle processing?

        thanks

        1 Reply Last reply
        0
        • S saksp

          How to associate event handler with the Idle event in c#?

          thanks

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          saksp wrote:

          How to associate event handler with the Idle event in c#?

          ?? why would it be different from any other event? try Application.Idle+=myIdleHandler; :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


          realJSOPR 1 Reply Last reply
          0
          • L Luc Pattyn

            saksp wrote:

            How to associate event handler with the Idle event in c#?

            ?? why would it be different from any other event? try Application.Idle+=myIdleHandler; :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


            realJSOPR Offline
            realJSOPR Offline
            realJSOP
            wrote on last edited by
            #5

            Another example of trying different things in a test app. I swear, some of these guys really should reevaluate their current career path...

            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
            -----
            "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

            L 1 Reply Last reply
            0
            • realJSOPR realJSOP

              Another example of trying different things in a test app. I swear, some of these guys really should reevaluate their current career path...

              "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
              -----
              "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              Yep. Weekend programmers resemble weekend traffic. Quantity down, quality down. :-D

              Luc Pattyn [Forum Guidelines] [My Articles]


              - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups