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

Idle processing

Scheduled Pinned Locked Moved C#
csharphelptutorial
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 have written following code. I have selected Project type as Visual C# --> Smart Devise --> Windows CE 5.0 When i built the solution i am getting error as "'System.Windows.Forms.Application' does not contain a definition for 'Idle'" int counter = 0; private void Form1_Idle(object sender, System.EventArgs e) { counter++; label1.Text = counter.ToString(); } private void Form1_Load(object sender, System.EventArgs e) { Application.Idle +=new EventHandler(Form1_Idle); } how to handle Idle event.

    thanks

    1 D 2 Replies Last reply
    0
    • S saksp

      I have written following code. I have selected Project type as Visual C# --> Smart Devise --> Windows CE 5.0 When i built the solution i am getting error as "'System.Windows.Forms.Application' does not contain a definition for 'Idle'" int counter = 0; private void Form1_Idle(object sender, System.EventArgs e) { counter++; label1.Text = counter.ToString(); } private void Form1_Load(object sender, System.EventArgs e) { Application.Idle +=new EventHandler(Form1_Idle); } how to handle Idle event.

      thanks

      1 Offline
      1 Offline
      12Code
      wrote on last edited by
      #2

      Just add.. private void Form1_Idle(object sender, EventArgs e) { // codes }

      Kelvin

      1 Reply Last reply
      0
      • S saksp

        I have written following code. I have selected Project type as Visual C# --> Smart Devise --> Windows CE 5.0 When i built the solution i am getting error as "'System.Windows.Forms.Application' does not contain a definition for 'Idle'" int counter = 0; private void Form1_Idle(object sender, System.EventArgs e) { counter++; label1.Text = counter.ToString(); } private void Form1_Load(object sender, System.EventArgs e) { Application.Idle +=new EventHandler(Form1_Idle); } how to handle Idle event.

        thanks

        D Offline
        D Offline
        Dominik Reichl
        wrote on last edited by
        #3

        saksp wrote:

        I have selected Project type as Visual C# --> Smart Devise --> Windows CE 5.0

        The .NET Compact Framework doesn't support the Application.Idle event. It is only supported by the .NET Framework.


        Too many passwords to remember? Try KeePass Password Safe!

        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