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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top