Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

Transparency Problem

My WinForms app has a "Client" form set as the startup object, and a "Splash" form with a background bitmap and several label controls.  The Client has a module level Splash form variable.  During Client_Load, the Client formats and shows the Splash form, using the labels on Splash to update startup processing (similar to Adobe Acrobat).

The problem is that the Labels (or any other controls) show transparent through to the desktop instead of Splash.BackgroundImage.  This continues until processing exits the Client_Load event.  Calling Splash.Invalidate does not correct it.

Does anyone know why this happens and/or how to fix it?  I'm still new to System.Drawing but ready to learn.  Thanks.

Joe Paradise
Friday, May 14, 2004

OMG I'm such a doofus.  The answer was staring me right in the face.  Calling Splash.Refresh after Show clears up the problem.  I need more caffeine.

Joe Paradise
Friday, May 14, 2004

*  Recent Topics

*  Fog Creek Home