Current filter:
          You should refresh the page.
          Not Logged In

          Strange problems when Application.EnableVisualStyles is used

          0
            • There may be different symptoms of this problem. For example:

              I.
              We are getting an occasional InteropServices.SEHException when dragging a DockWindow into a new position. It does not seem to be related to our application.

              II.
              If I have visual styles (XP styles) enabled in the application, the images for the toolbar buttons all go away.

          You must  log in  or  register  to leave comments

          1 Answer

          0

          The problem is caused by the Application.EnableVisualStyles method. It is described in detail in the following article:
          http://weblogs.asp.net/rprabhu/archive/2003/09/28/56540.aspx

          To make a long story short, you should call the DoEvents method after EnableVisualStyles as shown below.

          	
          [VB.NET]
          Application.EnableVisualStyles() Application.DoEvents() ' <<<< NEW LINE
          You must  log in  or  register  to leave comments