1

I have a winforms application with a menu. The "New" item on the menu creates a new control which has a lot of sub-controls, so it takes about 300ms to construct the control.

When you click the "New" menu item, you see something like this for a brief moment:

enter image description here

As you can see, the menu disappears over some of the form, but over the toolbar, for example, you can still see it.

I tried this solution How to double buffer .NET controls on a form?, but it caused more problems than it solved (Laggy menus, crashes when window is not maximized).

Community
  • 1
  • 1
ian93
  • 1,488
  • 4
  • 24
  • 37
  • it might because the program uses too many GDI resources. Please use process explorer(http://technet.microsoft.com/en-ca/sysinternals/bb896653.aspx) to see how much GDI handles the process is using. – Matt Jun 26 '14 at 19:36
  • 299 GDI handles according to process explorer. Is that a lot or a little? – ian93 Jun 26 '14 at 19:40
  • The number is OK, not too much. – Matt Jun 26 '14 at 19:44

0 Answers0