Antzelinaki
Programmer
- Jun 16, 2012
- 14
Hello!!!
I have created an array of pictureboxes named pbs. Public pbs(8) As PictureBox
And the what I want to do is to assign a different specific value for Location.X and Location.Y programmatically for each element. x,y are variables that change their values for each element programmatically.
for example
for i=0 to 7
Unfortunately I am getting this error Expression is a value and therefore cannot be the target of an assignment.
before to run it. So, is there a way to do it and how??? Any help will be much appreciated.
I have created an array of pictureboxes named pbs. Public pbs(8) As PictureBox
And the what I want to do is to assign a different specific value for Location.X and Location.Y programmatically for each element. x,y are variables that change their values for each element programmatically.
for example
for i=0 to 7
pbs(i).Location.X = x
pbs(i).Location.Y = y
next ipbs(i).Location.Y = y
Unfortunately I am getting this error Expression is a value and therefore cannot be the target of an assignment.
before to run it. So, is there a way to do it and how??? Any help will be much appreciated.