Thanks for the tip! I've looked over the "hidden" code. After browsing on topics such as Events and Delegates (still not too sure what they are), I understood that eventhandler wanted a "function pointer".
Thanks a lot for your help! My code is working fine now and I can make some progress.
Here's a short segment of my code.
Code:
{
Button addButton = new Button();
addButton.Text = "Add Category";
addButton.Location = new Point(25, 270);
addButton.Click += new System.EventHandler(this.addButton_Clicked);
this.Controls.Add(addButton);
}
private void addButton_Clicked(object sender, EventArgs e)
{
int testBreakPoint = 354;
}
Can you tell me if my understanding of Events and Delegates is incorrect?
Events are triggers that will invoke functions when activated.
Delegates are function pointers.