How can I write the following code in VB.NET :
private void Form1_Load(object sender, System.EventArgs e)
{
// Submit to Idle event to set controls state at idle time
Application.Idle += new EventHandler(Application_Idle);
}
private void Application_Idle(object sender, EventArgs e)
{
SetStateOfControls();
}
Also is ther a way to turn the Application.Idle on or off with
an on or off button ?