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!
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list