very basic code programming question

eqquito
02-04-2005, 08:11 AM
I am making a little simmulation of cars moving on the road. The thing is I made my form and coded the road coordinations into the picturebox but it seems the picture box is down of the form and I have to click the picturebox to be able to see the road lines. Maybe theres some code to refresh the picturebox and im missing it.

Also I made a circle to illustrate cars but i cant get to move from left to write.


additional info.
------------------------------------------
picturebox name: autopista

autopista.Circle (98, -5), 1, RGB(0, 0, 0), 6.28, 0 'car in left lane

charlie
02-04-2005, 10:42 AM
Autopista.Refresh

This should refresh your PictureBox.
Hope this helps.

charlie
02-04-2005, 10:46 AM
Oh! I was forgetting the Circle.
The circle method only paints a circle inside your PictureBox. You can't move it. If you want to move it you gotta made a Shape control with its Shape property set to 3 (Circle). Then you can change the Left property for moving it from left to right and viceversa.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum