Note that there are some explanatory texts on larger screens.

plurals
  1. POPartially Transparent Panels in WinForms app showing up black on Windows XP
    primarykey
    data
    text
    <p>Preface: Pardon for the partial images - This has to do with a work-in progress for my company.</p> <p>I have tested this on several fully updated Windows XP SP3 laptops using both .NET4.0 and .NET3.5. The end result is the same.</p> <p>I have a WinForms application. On the first screen of the application I have several panels that are a partially transparent black. I set this color by manually typing it into the properties editor.</p> <p><img src="https://i.stack.imgur.com/RX3ZD.png" alt="enter image description here"></p> <p>The resulting designer code if it helps is</p> <pre><code>this.pnlMain.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(125)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); </code></pre> <p>The visual end result is (corner of my main panel, the main form has an image background):</p> <p><img src="https://i.stack.imgur.com/fmwCD.png" alt="enter image description here"></p> <p>When I open my application on the problematic Windows XP machines, this is the result (the panel is solid black, sorry for the camera phone):</p> <p><img src="https://i.stack.imgur.com/pGQhi.png" alt="enter image description here"></p> <p>The application looks as expected on Windows Vista -> Windows 8. </p> <p>The curious thing is that on Windows XP if I click and drag the application to where it is almost completely off-screen and then drag it back into visual range, the partial transparency renders properly. </p> <p>I believe there is some weird paint/invalidation issue happening. Does anyone have any ideas? I have looked at many of the "transparency turns black" issues on StackOverflow and most mention custom controls, however it doesn't feel like that is a solution for my problem. Thanks in advance!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload