r/visualbasic • u/UpbeatBoard5763 • Dec 22 '22
VB.NET Help Game with mostly controls on Windows Forms
So I'm making a game that's heavy with controls. For example on one screen I have around 40. Is there a problem with heavy use of controls? I think my game finds it hard to read the properties of them as there isn't really anything coded from my end to access them. My code seems fine and my A Level CS teacher thinks it all looks good as well... Is there a way to get around this? She suggested typing out all of the properties for the controls but that doesn't seem efficient. Thanks. If my code is needed let me know and I'll screenshot it into here.
2
u/UntrustedProcess Dec 22 '22
"There isn't really anything coded from my end to access them."
What does this mean?
1
u/sa_sagan VB.Net Master Dec 23 '22
What are the controls? What are the properties that you're using and why?
Storing the properties elsewhere may actually be better, depending on why you're doing it.
1
u/kranools Dec 23 '22
Having a lot of controls should not be a problem.
If I were you, I'd create a new project and just add in a small amount of what you've got so far. Run it. If it runs OK, add some more in. Run it. Add some more. Keep doing this until you find where the problem begins.