tags:

views:

17

answers:

1

I created a control array of 32 picturebox.But when the borderstyle is changed during design time to 0 (None),the border of the first picturebox [picture1(0)]remains whereas the border of the remaining picturebox [picture1(1) to picture(31)] gets cleared. How do I remove it?

Dim x as Integer
For x = 0 to 31
picture1(x).BorderStyle = 0
Next x
A: 

I've just tried the same thing with 47 Picture Boxes, with no problem.

  1. Make sure your first Picture Box has its Index property set correctly.
  2. Make sure the Name property is set correct.
  3. Make sure that you don't have one Picture Box hidden behind another.
Jonathan Swift
I have checked all the points mentioned.I even moved the first picturebox away from the rest but still the border does not go.The right side and the bottom border are visible
Dario Dias
Interesting. Try removing all of them and then setting them back up again. Otherwise, just remove the first one and start numbering from 1. Pragmatic, but may solve the problem.
Jonathan Swift