how to control any picturebox according to location but not name

sadiytoker
11-06-2007, 04:53 AM
hi
i want to move pictureboxes according to their location

for example the pictureboxes having location.y values =250 will move 10 units left with a button click

tell me please how to do that
thanks

user name
11-06-2007, 11:44 AM
Create a control array of the picturebox's then loop through that array checking what the Left position is, if it matches then move it.

Qua
11-06-2007, 06:05 PM
This might be something:


'The control to iterate through
Dim VariableName As ControlType

' Go through all of those controls
For Each VariableName In FormName.Controls
If Condition Then
DoSomething()
End If
Next

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum