[Mono-list] Ported code from VB6 to VB.NET problem
Paul Johnson
paul at all-the-johnsons.co.uk
Thu Mar 21 22:24:10 UTC 2013
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_Click
> Next
many thanks for this advice - much appreciated :)
Paul
--
"Space," it says, "is big. Really big. You just won't believe how
vastly, hugely, mindbogglingly big it is. I mean, you may think it's a
long way down the road to the chemist's, but that's just peanuts to
space, listen..."
Hitch Hikers Guide to the Galaxy, a truly remarkable book!
More information about the Mono-list
mailing list