Click here to Skip to main content
15,915,611 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to access the Generic.Dictionary by an index. Pin
J4amieC20-Dec-06 22:45
J4amieC20-Dec-06 22:45 
GeneralRe: How to access the Generic.Dictionary by an index. Pin
Martin#20-Dec-06 22:52
Martin#20-Dec-06 22:52 
GeneralRe: How to access the Generic.Dictionary by an index. Pin
Tim Paaschen20-Dec-06 22:41
Tim Paaschen20-Dec-06 22:41 
GeneralRe: How to access the Generic.Dictionary by an index. Pin
MarkPhB20-Dec-06 23:08
MarkPhB20-Dec-06 23:08 
QuestionHow does the HKL struct look like? Pin
Martin#20-Dec-06 21:25
Martin#20-Dec-06 21:25 
AnswerRe: How does the HKL struct look like? Pin
Pete O'Hanlon20-Dec-06 22:52
mvePete O'Hanlon20-Dec-06 22:52 
GeneralRe: How does the HKL struct look like? Pin
Martin#20-Dec-06 23:24
Martin#20-Dec-06 23:24 
Questionhandle events for objects created on the fly? Pin
JoeRip20-Dec-06 21:03
JoeRip20-Dec-06 21:03 
When you create .NET UI objects on the fly, how do you handle the events that come to them?

Lets say that in code, I create any number of new buttons and put them on my form. How do I code a handler for the click event on those buttons? I won't know their names until they exist (Button1, Button2, Button3, etc), and I can't just have a huge list of

private void Button1(), private void button()

handlers sitting around in my code.

So, how do I code a handler for Button[x]? I'm sure there is something basic I'm missing here.

Thanks,

Joe

PS. I posted a much more specific version of this question in the .NET framework forum, before I realized that I had a much more general lack of understanding here.
AnswerRe: handle events for objects created on the fly? Pin
Tarakeshwar Reddy20-Dec-06 21:24
professionalTarakeshwar Reddy20-Dec-06 21:24 
AnswerRe: handle events for objects created on the fly? Pin
AmitSumit20-Dec-06 21:29
AmitSumit20-Dec-06 21:29 
GeneralRe: handle events for objects created on the fly? Pin
JoeRip20-Dec-06 21:56
JoeRip20-Dec-06 21:56 
QuestionTransparent control with Magnifier functionality [modified] Pin
free_soul42420-Dec-06 20:58
free_soul42420-Dec-06 20:58 
QuestionHow to create the set up for "Word Template" project Pin
AmitSumit20-Dec-06 20:53
AmitSumit20-Dec-06 20:53 
QuestionHow to change fonts of any custom string ?? Pin
Waqas Nasir20-Dec-06 20:24
Waqas Nasir20-Dec-06 20:24 
AnswerRe: How to change fonts of any custom string ?? Pin
Guffa20-Dec-06 21:01
Guffa20-Dec-06 21:01 
QuestionHow to add a seperator in context menu control for .NET 1.1? Pin
Waqas Nasir20-Dec-06 20:22
Waqas Nasir20-Dec-06 20:22 
AnswerRe: How to add a seperator in context menu control for .NET 1.1? Pin
Pete O'Hanlon20-Dec-06 22:54
mvePete O'Hanlon20-Dec-06 22:54 
QuestionHow to know if a file is being used by another process? Pin
jamesjk20-Dec-06 19:03
jamesjk20-Dec-06 19:03 
AnswerRe: How to know if a file is being used by another process? Pin
jdkulkarni20-Dec-06 19:25
jdkulkarni20-Dec-06 19:25 
AnswerRe: How to know if a file is being used by another process? Pin
Shajeel20-Dec-06 19:43
Shajeel20-Dec-06 19:43 
AnswerRe: How to know if a file is being used by another process? Pin
Martin#20-Dec-06 20:01
Martin#20-Dec-06 20:01 
QuestionSorry about the question Pin
sajid.salim.khan20-Dec-06 17:15
sajid.salim.khan20-Dec-06 17:15 
AnswerRe: Sorry about the question Pin
Christian Graus20-Dec-06 18:54
protectorChristian Graus20-Dec-06 18:54 
QuestionDo you thinnk ther'd be a problem whith storing a 100KB file in an array? Pin
Anthony Mushrow20-Dec-06 12:49
professionalAnthony Mushrow20-Dec-06 12:49 
AnswerRe: Do you thinnk ther'd be a problem whith storing a 100KB file in an array? Pin
Luc Pattyn20-Dec-06 15:05
sitebuilderLuc Pattyn20-Dec-06 15:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.