Hi,
I am starting to try and create windows forms using C# in Visual Studio 2008.
I added a button to my form, and when I clicked it, the event handler code was generated as expected:
private void button1_Click(object sender, EventArgs e)
{
}
The book I am following also says that when I delete a control from the form, the code for it will also be deleted, but when I right click on the button and select Delete, the event handler code is still there. The button however has gone from the form.
I tried to rebuild my project thinking it might then remove the the event handler code, but is was still there.
So basically I was wondering how you delete a form component, and have visual studio also remove the code for it, which it added in the first place.
Thanks for any help!!
:)