You want to remove Graphics Flicker ?
I hate the thing what they did to Autoredraw on Controls & Forms...so i did a class that stops the object while it's painting in that way, the flicker is reduced, try it.
This is the class
Code:
Public Class IAutoRedraw
Event AutoRedraw(ByVal g As System.Drawing.Graphics)
Public Sub DoRedraw(ByVal g As System.Drawing.Graphics)
Dim bDrawing As Boolean
bDrawing = True
While bDrawing
RaiseEvent AutoRedraw(g)
bDrawing = False
End While
End Sub
End Class
-----------------------------
This is how to use it:
Code:
Private Withevents IA as New IAutoRedraw
Private Sub IA_AutoRedraw(ByVal g As System.Drawing.Graphics) Handles IA.AutoRedraw
'Do all your graphics stuff here
End Sub
'To use "Almost" FlickerFree Drawing, use: IA.DoRedraw
'You can put in the Paint Event of you form, or anything.
Re: You want to remove Graphics Flicker ?
You do not need to draw any controls. just copy the below code to anywhere in the form class preferably just above the end class and flicker will not be visible:
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams
cp.ExStyle = cp.ExStyle Or &H2000000
Return cp
End Get
End Property
This is for VB.net only
Happy Learning :)
Re: You want to remove Graphics Flicker ?
Quote:
Originally Posted by
arimaknp
You do not need to draw any controls. just copy the below code to anywhere in the form class preferably just above the end class and flicker will not be visible:
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams
cp.ExStyle = cp.ExStyle Or &H2000000
Return cp
End Get
End Property
This is for VB.net only
Happy Learning :)
You do realize you've just revived a 16 year old thread??? I often stop for a moment to think about my answers, but 16 year thinking time is ridiculous :D
Re: You want to remove Graphics Flicker ?
Quote:
Originally Posted by
.paul.
You do realize you've just revived a 16 year old thread??? I often stop for a moment to think about my answers, but 16 year thinking time is ridiculous :D
Be fair, Paul, it's only 15 years old;).
P.S. you just flunked Arithmetic 1.
Re: You want to remove Graphics Flicker ?
Ok, you got me. I looked at the Joined date instead of the thread date... :D
Re: You want to remove Graphics Flicker ?
...and what version of VS.net did you get in 2002? VB6 is came out later... :confused:
Re: You want to remove Graphics Flicker ?
Quote:
Originally Posted by
Inside
...and what version of VS.net did you get in 2002? VB6 is came out later... :confused:
VB6 was released in 1998, and the first proper release of .Net was VS 2002 (which included VB 7.0), but some of us had the .Net beta about a year earlier.
Re: You want to remove Graphics Flicker ?
Nice thanks for the reply dude!
Its crazy that this tread was created 20 years ago!
Re: You want to remove Graphics Flicker ?
Quote:
Originally Posted by
jamesfalcon23
Nice thanks for the reply dude!
Its crazy that this tread was created 20 years ago!
What's crazy is bumping this old thread back to the top, thanking a 5 year old reply as if it was written to you, after you joined VBForums yesterday.