Hi Rolf,
The easiest solution is to not use WithEvents, but attach event
handlers manually (in any case your WithEvents declaration is wrong,
you'd be listening for events on the List, not events from the
individual buttons).
For Each button In cmdButtons
AddHandler button.Click, cmdButton
Hi,
On Thu, Mar 21, 2013 at 4:57 PM, Paul Johnson
wrote:
> Hi,
>
> I've ported some of my old code from VB6 to VB.NET and have fixed just about
> all of the issues except for one.
>
> In VB6, there are collection arrays (so you can have the likes of an array
> of buttons etc). To get around the l
Hi,
I've ported some of my old code from VB6 to VB.NET and have fixed just
about all of the issues except for one.
In VB6, there are collection arrays (so you can have the likes of an
array of buttons etc). To get around the lack of these in VB.NET, I'm
using a List for them
For example
D