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.
 
Back
Top