1 Replies - 443 Views - Last Post: 30 September 2009 - 01:35 PM Rate Topic: -----

#1 AshSofDev  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 17
  • Joined: 23-September 09

Image trail

Posted 30 September 2009 - 12:37 PM

I have a form with a picture box that moves on form load with timer but the picture shows a trail when moving

Private Sub TimerBottomBun1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TimerBottomBun1.Tick
		Dim Loc As Point
		If Not pbBottomBun1.Location.X + 37 < 0 Then
			Loc = New Point(pbBottomBun1.Location.X - 5, pbBottomBun1.Location.Y)
			pbBottomBun1.Location = Loc
		Else
			Loc = New Point(Me.Width + 5, 85)
			pbBottomBun1.Location = Loc
		End If
	End Sub


How can I stop the trail?

Thanks in advance

Is This A Good Question/Topic? 0
  • +

Replies To: Image trail

#2 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: Image trail

Posted 30 September 2009 - 01:35 PM

Not sure what you mean by trail. I just pasted your code in a timer and the picture scrolled around the screen as I would expect it to from your code.

did you set something other than the default settings on your picturebox that maybe I don't have set the same way?


maybe try a refresh on the form to see if that cleans up the trail your describing.

This post has been edited by CharlieMay: 30 September 2009 - 01:36 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1