Results 1 to 4 of 4

Thread: Flicker problem... should be very easy

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    Montreal
    Posts
    34

    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

  2. #2
    Zaei
    Guest
    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.

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    Montreal
    Posts
    34
    Could you point me in the direction of how to use those methods and where to find them pls.

    Thankx again.

  4. #4
    Zaei
    Guest
    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
  •  



Click Here to Expand Forum to Full Width