Create Buttons from Source and add Events
Hi. I have got a problem and I hoped you would help me.
I use this function to create a button within an application
private void AddButton(string Text)
{
Button cmdTest = new Button();
pnlContainer.Controls.Add(cmdTest);
}
I was wondering why C# wasn't complaining there are multiple buttons with the same name.. but there seems to be no problem.
So my next problem is that I need to have buttons created at runtime (that's the point) that should trigger an event (a simple example would do .. I am not quite too familiar with events and delegates).
greetings UNI