how to WithEvents on a local array of Radiobuttons?

  • Thread starter Thread starter Kai Zhang
  • Start date Start date
K

Kai Zhang

I dynamically created a list of radiobuttons and I want to handle the events
on all of them.

However, I first cannot add withevent onto array, second, the array is
really a local variable, I cannot add withevent on local variables.

Any suggestion how to solve this?

Thanks in advance,

Kai
 
Kai Zhang said:
I dynamically created a list of radiobuttons and I want to handle the
events on all of them.

However, I first cannot add withevent onto array, second, the array is
really a local variable, I cannot add withevent on local variables.

Take a look at the 'AddHandler'/'RemoveHandler' statements in the
documentation.
 

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