0

for example i have 2000 picture box and i have a array the lenght of 2000.
and my picturebox names is like pb1,pb2 .... pb1999, pb2000

so if my arrays 1393th item is not null i want to change 1393th pictureboxs color.

is there any easy way?

i know i can use select case but if i use this it takes 2000 row and its useless :D

thx for read

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by Oneryavuz
0

umm couse i cant use loop
i wish this code but

for i=0 to arry.lenght-1
if arry(i) isnot null then
pb&i.backcolor= red 'i wish this code but :D we cant 
next

Edited by Oneryavuz: n/a

0

hmm i found something
i use panel for all picturebox and for each :))

but i we have 2000 picturebox and some diffrent controls like buttons textboxs and something like this
if we shouldnt use panel for just pictures? how can i do that

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.