Jump to content
Software FX Community

Floating gauge on desktop


Recommended Posts

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 

Link to comment
Share on other sites

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.



Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...