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. Application.Idle Event

Application.Idle Event

Scheduled Pinned Locked Moved C#
question
3 Posts 3 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

    I am not able to attach Application.Idle event with the event handler. what will be the reasons??

    thanks

    D realJSOPR 2 Replies Last reply
    0
    • S saksp

      I am not able to attach Application.Idle event with the event handler. what will be the reasons??

      thanks

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

      saksp wrote:

      what will be the reasons

      Maybe you're doing it wrong? This works for me.

      using System;
      using System.Windows.Forms;

      public partial class Form1 : Form
      {
      public Form1()
      {
      InitializeComponent();
      Application.Idle += new EventHandler(Application_Idle);
      }

      // this method called when Idle event is raised
      void Application\_Idle(object sender, EventArgs e)
      {
          // Do your thing
      }
      

      }

      Dave
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
      Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

      1 Reply Last reply
      0
      • S saksp

        I am not able to attach Application.Idle event with the event handler. what will be the reasons??

        thanks

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

        saksp wrote:

        I am not able to attach Application.Idle event with the event handler. what will be the reasons??

        You're doing it wrong.

        "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

        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