Handle numerous buttons with one event handler

  • Thread starter Thread starter nnb295
  • Start date Start date
N

nnb295

Hi,

I would like to create dynamic a variable count (1 to 50 - or more) of
buttons on my form. Is it possible to use easily only one procedure
to handle every click event of each button?

Thanks

nnb295
 
Hi,

I would like to create dynamic a variable count (1 to 50 - or more) of
buttons on my form. Is it possible to use easily only one procedure
to handle every click event of each button?

Sure. See the 'AddHandler' and 'RemoveHandler' statements.
 
Back
Top