Re: [Mono-list] Ported code from VB6 to VB.NET problem

2013-03-21 Thread Paul Johnson
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

Re: [Mono-list] Ported code from VB6 to VB.NET problem

2013-03-21 Thread Rolf Bjarne Kvinge
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

[Mono-list] Ported code from VB6 to VB.NET problem

2013-03-21 Thread Paul Johnson
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