-
Jul 30th, 2017, 10:15 PM
#1
Thread Starter
Lively Member
[RESOLVED] How to remove blinking when load form ...
I use gradientpanel Bunifu_UI_v1.52.dll ..
when i load form with gradient panel the form blink and load slowly..
how to fix this except remove bunifugradientpanel..??
-
Jul 30th, 2017, 10:49 PM
#2
Re: How to remove blinking when load form ...
Flickering is generally the result of poor GDI+ rendering code. If the issue is in your code then you may be able to fix it. If it's in the DLL you're using then you may not be able to do anything. The first thing to try would be to set the DoubleBuffered property of your form to True. If that's required then I'd expect the documentation for the library you're using to specify that. If that doesn't work, check that documentation and see if it does specify any requirements or potential workarounds for issues. If you still have a problem, post more details here about what you're doing.
-
Jul 30th, 2017, 11:10 PM
#3
Thread Starter
Lively Member
Re: How to remove blinking when load form ...
Originally Posted by jmcilhinney
Flickering is generally the result of poor GDI+ rendering code. If the issue is in your code then you may be able to fix it. If it's in the DLL you're using then you may not be able to do anything. The first thing to try would be to set the DoubleBuffered property of your form to True. If that's required then I'd expect the documentation for the library you're using to specify that. If that doesn't work, check that documentation and see if it does specify any requirements or potential workarounds for issues. If you still have a problem, post more details here about what you're doing.
i try set doublebuffer to true but my form still flickering..
i try use blank form n use bunifugradientpanel .there no code just blank with gradient it's still flickering ..
the problem maybe on bunifugradientpanel.. but i really want it..howwwww?
-
Jul 30th, 2017, 11:15 PM
#4
Thread Starter
Lively Member
Re: How to remove blinking when load form ...
i get the answer for remove flickering...
Protected Overloads Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams
cp.ExStyle = cp.ExStyle Or 33554432
Return cp
End Get
End Property
-
Aug 10th, 2020, 04:16 AM
#5
Re: [RESOLVED] How to remove blinking when load form ...
Thank you khabib,
That's done the job beautifully.
Poppa
Along with the sunshine there has to be a little rain sometime.
-
Jan 26th, 2022, 09:45 PM
#6
Registered User
Re: How to remove blinking when load form ...
Originally Posted by khabib28
i get the answer for remove flickering...
Protected Overloads Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams
cp.ExStyle = cp.ExStyle Or 33554432
Return cp
End Get
End Property
thanks it worked but the only problem with this is when i click minimized button and from my borderless form and click the icon from the task bar it shows like this
my code is
Protected Overloads Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams
cp.Style = cp.Style Or &H20000
cp.ExStyle = cp.ExStyle Or 33554432
Const WS_MINIMIZEBOX As Integer = &H20000
cp.Style = cp.Style Or WS_MINIMIZEBOX
Return cp
End Get
End Property
Tags for this Thread
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
|