MegaDave1 Posted March 13, 2007 Report Share Posted March 13, 2007 I’m trying to create a “floating” gauge on my desktop with a transparent background. Using Visual Studio 2005 I add the gauge to a form and set the backcolor to Transparent. Since I can’t set the forms backcolor to Transparent, I set it to a color like Fuchsia and set the forms TransparencyKey color to match. I also set the FormBorderStyle to none. This works but the gauges edges are “jagged” and the Fuchsia color bleeds through around the control. Is there a way to get the “floating” gauge effect with smooth edges? Thank You Quote Link to comment Share on other sites More sharing options...
JuanC Posted March 15, 2007 Report Share Posted March 15, 2007 The closest we have got to smooth edges for "floating" gauges is to use a grayish color for both Background and TransparencyKey. The trick is that you have to use a gray color that is similar enough to the border so that the bleed removes the jagged effect but that is not used anywhere else in the gauge. We have found that using Color.FromArgb(127, 128, 132) seems to work fine for most borders. Regards, JuanC Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.