Results 1 to 6 of 6

Thread: [RESOLVED] [2005] Halt Repainting Of Form

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,051

    Resolved [RESOLVED] [2005] Halt Repainting Of Form

    How can I keep my form from repainting until I'm ready for it to repaint?

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [2005] Halt Repainting Of Form

    You can override the OnPaint method which is responsible for firing the paint event
    VB Code:
    1. Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
    2.         If isReady Then
    3.             MyBase.OnPaint(e)
    4.         End If
    5.     End Sub
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,051

    Re: [2005] Halt Repainting Of Form

    Thanks I'll Try It.

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,051

    Re: [2005] Halt Repainting Of Form

    I tried that, it repainted even with my boolean set.
    The paint event happened anyway.
    Any other ideas?

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,051

    Re: [2005] Halt Repainting Of Form

    No, I was wrong.
    It's working just fine
    Thanks

  6. #6
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: [RESOLVED] [2005] Halt Repainting Of Form

    For completeness:
    most of the Graphics class's methods support a bool callback function that gets called periodically during intensive drawing, if you pass one of your own functions to this callback ten you can abort the drawing by manipulating the value returned by your function.
    I don't live here any more.

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