Questions tagged [transparent-control]

14 questions
22
votes
1 answer

WPF: Ignore mouse clicks on overlay/adorner, but handle MouseEnter event

What I really want is a version of IsHitTestVisible that ignores mouse click events but still traps mouse enter and leave events. Background: An informational overlay pops up under the control with focus whenever. This is a requirement, so I'm not…
stone
  • 8,422
  • 5
  • 54
  • 66
20
votes
7 answers

How to create a transparent control which works when on top of other controls?

I have a control (derived from System.Windows.Forms.Control) which needs to be transparent in some areas. I have implemented this by using SetStyle(): public TransparentControl() { SetStyle(ControlStyles.SupportsTransparentBackColor, true); …
Ed S.
  • 122,712
  • 22
  • 185
  • 265
11
votes
2 answers

How to make form transparent while keeping the component visible?

I need to make the program which have one form that contains PNG image with transparent area. Form must be invisible, while image must stay visible and transparent area must stay transparent. The problem is image transparency. In this case, main…
Srdjan Vukmirica
  • 743
  • 2
  • 8
  • 22
6
votes
1 answer

Writing text on desktop

I want to write some text on Desktop (Currently connected DiskDrives). So I set BorderStyle to bsNone, TransparentColor to true and TransparentColorValue to clRed after that I got terrible result: How can I fix this? I'm currently trying to fix…
Alex Hide
  • 555
  • 5
  • 18
5
votes
1 answer

Transparent group box

I have inherited from TGroupBox of the Delphi native control and overriden its Paint method to draw rounded rectangle. procedure TclTransparentGroupBox.CreateParams(var params : TCreateParams); begin inherited; Params.ExStyle :=…
Rahul W
  • 833
  • 11
  • 26
1
vote
0 answers

Use winforms control with transparent background in MFC

all. I'm writting a MFC App that use Winforms user controls in it. I made a rounded control with c# and placed it on my MFC dialog using MFC-hosting technology. But the control does not show its background transparently. So, it looks very poor. I…
jinbruce627
  • 133
  • 8
1
vote
0 answers

How to implement a transparency or opacity control bar in HTML

I have two maps which are overlayed on each other. Now I want to add opacity control for them . But I don't know how to do that . Kindly suggest. I am overlaying maps in HTMl which is added in webview. Thanks Astha
Astha Devra
  • 163
  • 1
  • 15
1
vote
2 answers

How to make a panel with a truly transparent background

I have a transparent image that I have made in Photoshop which has a 30% opacity to it. Now I am trying to put that as background image for a panel. But an ordinary panel even if putting the background color to transparent, shows a white/control…
Andreas
  • 1,121
  • 4
  • 17
  • 34
1
vote
1 answer

c#: transparent in tabControl

I'm looking for a way to cause a tabControl (framework 2.0) to be transparent in back ground. I have a custom tabControl that inherite from microsoft tabControl. when I'm trying to paint a transparent image in OnPaintBackground the background…
Golan
0
votes
1 answer

Transparency problem with gradient - Label in a Panel on a UserControl, ultimately displayed on parent Form

I know this has been asked many times, but not quite the way I'm trying to solve it. I have Labels in a Panel on a UserControl, and the UserControl goes onto a form. The Label.BackColor = Transparent. The panel is from DevExpress, and I've set a…
TomK
  • 523
  • 2
  • 7
  • 18
0
votes
0 answers

0% form opacity without affecting controls (items) in C#

How can I do 0% form opacity without affecting controls (items)? I found Changing form opactity without changing opacity of contained controls, but there is no answer. What is the answer?
dmrc1143
  • 91
  • 2
  • 3
  • 11
0
votes
1 answer

VB.NET TableLayout MouseEnter and leave event

I'm trying to do something that actually looks "simple" since several hours, but I cannot understand how to do it...and lurking over SO or different sites it seems that maybe is not that obvious. The question is simple: i have a tableLayoutPanel…
0
votes
1 answer

VB.net transparent control issue

Public Class HighlightKey Inherits Control Private m_fillColor As Color = Color.White Private m_opacity As Integer = 100 Private alpha As Integer Private m_image As Image Public Sub New() …
user294720
  • 63
  • 6
0
votes
0 answers

How to draw transparent labels without making the labels behind them see through also

I would like to draw a label on top of another label. The top label's backcolor is transparent. I would like to see the color of the bottom label's backcolor, not the backcolor of the form both labels are on. Currently when I set a label to…
Dennis
  • 51
  • 1
  • 8