N
N
new_mysql2019-02-21 23:06:35
C++ / C#
new_mysql, 2019-02-21 23:06:35

C# How to implement window resizing without flicker?

How to implement window size measurement with FormBorderStyle=None property without flicker?
The only way without full flickering that I found on the Internet is:

protected override CreateParams CreateParams {
  get {
    CreateParams parms = base.CreateParams;
    parms.Style |= 0x40000;
    return parms;
  }
}

but a rather thick frame appears, as well as a white stripe on top of which I could not get rid of.
5c6f0442f0277845453385.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kwayne, 2019-02-27
@kwayne

Set the form's DoubleBuffered property to true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question