I have an windows forms application written in c#. I want to reload form when someone press the "clear" button in it. But I couldn't achieve to call Load event.These lines didn't also work :
this.Refresh();
this.Load +=new EventHandler(Grafik_Load); // 'Grafik' is the name of the form.
What should I do about this? Thanks for helping..
Place the 'load' code in a separate function and call that function from you're own code/Load event handler.
private void callonload()
{
//code which u wrriten on load event
}
private void Form_Load(object sender, EventArgs e)
{
callonload();
}
private void btn_clear_Click(object sender, EventArgs e)
{
callonload();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With