Dear Experts,
I m using a timer and I know how to enable and use it for a button click. But tell me how to enable a timer when a function is called inside a button click.
I tried these codes but they are faulty. (Timer event was set to test_function)
namespace test_timer
{
public partial class Form1 : Form
{
public Form1()
{
InitializeCompo nent();
}
private void button1_Click(o bject sender, EventArgs e)
{
this.timer1.Ena bled = true;
test_function() ;
}
public void test_function()
{
MessageBox.Show ("Function called");
}
}
Dear Experts please help me ASAP !!!!
Anuhas......... ..
I m using a timer and I know how to enable and use it for a button click. But tell me how to enable a timer when a function is called inside a button click.
I tried these codes but they are faulty. (Timer event was set to test_function)
namespace test_timer
{
public partial class Form1 : Form
{
public Form1()
{
InitializeCompo nent();
}
private void button1_Click(o bject sender, EventArgs e)
{
this.timer1.Ena bled = true;
test_function() ;
}
public void test_function()
{
MessageBox.Show ("Function called");
}
}
Dear Experts please help me ASAP !!!!
Anuhas......... ..
Comment