|
-
April 26th, 2004, 06:19 PM
#1
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|