martin2k

ForumsVB6GamesSoftwareDirectoryHTMLArticlesBlogContact

How to Move a Shape by mahesh


 

Home

Read and add posts to the Visual Basic 6.0 Forums

Download some of my programs and OCXs

Read the Tips here

The old style forum is still available here

Contact


 

Beginner Tip

To move a shape in a form consider the following code place a shape on the form
place a timer on the form
set the timer interval property to 10

place the following code in timer event

if shape1.left < 8000 then
shape1.left=shape1.left+20
end if
if
shape1.left >= 8000 then
shape1.left = shape1.left-20
end if

blog comments powered by Disqus
Martin Allen 1999 - 2011.  Last updated Saturday 13 August 2011 12:01:12 AM +0100.