Application.Idle Event
-
I am not able to attach Application.Idle event with the event handler. what will be the reasons??
thanks
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) -
I am not able to attach Application.Idle event with the event handler. what will be the reasons??
thanks
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