zunebuggy65
Active member
- Joined
- Oct 12, 2023
- Messages
- 42
- Programming Experience
- 3-5
I have a grid made up with many PictureBoxes Named C0 through C503. I could have used several GroupBoxes as well. I have a routine that changes the BackColor of each based on a huge Select Case statement and KeyDown event for each arrow key. This works and makes it look like a cursor showing the current position based on the arrow keys.
The problem is that it's very slow. Instead of using the huge Select Case to clear and set the "cursor", is there are better way? I tried passing "C" & n (the name of each PictureBox ) to a Sub and this caused an exception.
VB6 used to let you make a control array for PictureBoxes or GroupBoxes like picBox(x) to reference each one, but I do not see that option in VB.net.
Thank you
The problem is that it's very slow. Instead of using the huge Select Case to clear and set the "cursor", is there are better way? I tried passing "C" & n (the name of each PictureBox ) to a Sub and this caused an exception.
VB6 used to let you make a control array for PictureBoxes or GroupBoxes like picBox(x) to reference each one, but I do not see that option in VB.net.
Thank you