|
-
Jan 8th, 2002, 03:12 AM
#1
Thread Starter
Member
Flicker problem... should be very easy
Here it goes:
Standard exe with 1 form
Add Shape1 and Timer1 and this code in Form1:
Private Sub Form_Load()
Timer1.Interval = 25
Timer1.Enabled = True
Shape1.FillStyle = 0
Me.WindowState = vbMaximized
End Sub
Private Sub Timer1_Timer()
Call Shape1.Move(Shape1.Left + 15, Shape1.Top + 15)
DoEvents
End Sub
What would be the simplest solution to getting rid of the flicker. This is not for a game, but I know you guys would be the best to answer me. Can you post code pls.
Thankx for the help
-
Jan 8th, 2002, 07:31 AM
#2
When using shapes, its next to impossible to get rid of that flicker. If you use the built in drawing commands that VB gives you, you can easily remove the shape from your form, and draw it yourself. Take a look at the Circle Method, and the Line method.
Z.
-
Jan 8th, 2002, 05:40 PM
#3
Thread Starter
Member
Could you point me in the direction of how to use those methods and where to find them pls.
Thankx again.
-
Jan 8th, 2002, 05:56 PM
#4
Both functions are fully documented in the MSDN. Check there, or online at http://msdn.microsoft.com/library .
Z.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|