Results 1 to 6 of 6

Thread: [RESOLVED] How to remove blinking when load form ...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2017
    Posts
    75

    Resolved [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..??
    Name:  blink.jpg
Views: 2809
Size:  24.1 KB

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,302

    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2017
    Posts
    75

    Re: How to remove blinking when load form ...

    Quote Originally Posted by jmcilhinney View Post
    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?

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 2017
    Posts
    75

    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

  5. #5
    PowerPoster Poppa Mintin's Avatar
    Join Date
    Mar 2009
    Location
    Bottesford, North Lincolnshire, England.
    Posts
    2,426

    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.

  6. #6
    Registered User
    Join Date
    Jan 2022
    Posts
    1

    Re: How to remove blinking when load form ...

    Quote Originally Posted by khabib28 View Post
    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
    Name:  wdawd.jpg
Views: 1079
Size:  20.7 KB

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
  •  



Click Here to Expand Forum to Full Width