Sunday, May 1, 2011

Why does calling form.Hide() cause flicker, but form.Close() not?

I have a .net form that is created in Excel (I don't know if that's relevant), and when I call form.Hide(), Excel flickers briefly. If I instead call form.Close(), the flicker is absent.

Why does the Hide() version cause flicker, while the Close() version not?

From stackoverflow
  • I imagine it is because Hide() is forced to redraw the window with it hidden and Close() terminates the process, which I believe is handled by the OS instead of .NET in the case of Hide()

    Ant : Seems to make sense :)

0 comments:

Post a Comment