Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27072

Redundant Control Usage

$
0
0
What I mean by Redundant Control Usage is, I'd like to put a bunch of buttons in a FlowLayoutPanel using just one button as a template, without needing to create events for each, but rather utilizing the same event for all buttons created from the template button...

Is this possible? If so, help?

Essentially I would use a Select Case statement & the Button.Name.ToString function as a comparison to actually run code...

That way I can condense code work.... Because I'm thinking 400+ buttons here, or more!

(As I've said before, I'm not per say an Object Oriented Programmer, I've only been working mostly in gaming code for years, C++)

Viewing all articles
Browse latest Browse all 27072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>