Repos

MELHARFI-2D-Game-Engine.

Got to repo.

23. Flickering issue

  • Flickering controls issue
  • This library use the Windows GDI+ technology meant to be used to draw Controls and it allow to draw some stuff as shapes, images ... unfortunatly there's a flickering issue known in the GDI+ that i experianced in some old .Net Framework versions maybe 4.0 more or less, i don't remember.

    So if it's the case for you, you can enable Double buffering after InitializeComponent(); in the form's constructor.

                            
    using System.Windows.Forms;
    
    namespace _2dProject
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
    
                this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.DoubleBuffer, true);
                this.Invalidate();
            }
        }
    }
                            
                          

    Remembre that if you don't experiment this issue then no need to add that code.

    Services

    App Developpement

    Want me to dev an app for you ? dont hesitate to contact me.

    Programming

    Are you looking for a coder/teammate for your project ? Let's give it a try.

    Job Invitation

    Have a proposal for me ? we can discuss about it.

    Donation maybe ?!

    You want to buy me a coffe ? m.elharfi@gmail.com