|
-
Nov 1st, 2006, 03:30 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] [2005] Halt Repainting Of Form
How can I keep my form from repainting until I'm ready for it to repaint?
-
Nov 1st, 2006, 03:40 PM
#2
Re: [2005] Halt Repainting Of Form
You can override the OnPaint method which is responsible for firing the paint event
VB Code:
Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
If isReady Then
MyBase.OnPaint(e)
End If
End Sub
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Nov 1st, 2006, 03:47 PM
#3
Thread Starter
Frenzied Member
Re: [2005] Halt Repainting Of Form
-
Nov 1st, 2006, 03:56 PM
#4
Thread Starter
Frenzied Member
Re: [2005] Halt Repainting Of Form
I tried that, it repainted even with my boolean set.
The paint event happened anyway.
Any other ideas?
-
Nov 1st, 2006, 04:18 PM
#5
Thread Starter
Frenzied Member
Re: [2005] Halt Repainting Of Form
No, I was wrong.
It's working just fine
Thanks
-
Nov 1st, 2006, 04:55 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|