I have following code in the form_Load function
System.Windows.Forms.Timer newtimer = new Timer();
newtimer.Tick += new EventHandler(refreshinfo);
newtimer.Start();
newtimer.Interval = 20000;
The "refreshinfo" function goes like this:
private void refreshinfo(object source,EventArgs e)
{
// Some code here
}
The function "refreshinfo" is called after the 20 seconds. So far so good. Problem is that i want "refreshinfo" to be called on form_Load event also. So that i can get the desired results from "refreshinfo" when the user loads this form.