Click here to Skip to main content
15,914,642 members
Home / Discussions / C#
   

C#

 
GeneralRe: Setting Environment Variables (Permanently) Pin
Sebastian Schneider16-Mar-05 3:50
Sebastian Schneider16-Mar-05 3:50 
GeneralRe: Setting Environment Variables (Permanently) Pin
Sebastian Schneider16-Mar-05 3:56
Sebastian Schneider16-Mar-05 3:56 
GeneralRe: Setting Environment Variables (Permanently) Pin
WiseBuddha16-Mar-05 4:07
WiseBuddha16-Mar-05 4:07 
GeneralRe: Setting Environment Variables (Permanently) Pin
Christian Wikander16-Mar-05 4:21
Christian Wikander16-Mar-05 4:21 
GeneralTransparent background Pin
Christian Wikander16-Mar-05 2:54
Christian Wikander16-Mar-05 2:54 
GeneralRe: Transparent background Pin
lmuth16-Mar-05 3:01
lmuth16-Mar-05 3:01 
GeneralRe: Transparent background Pin
Christian Wikander16-Mar-05 3:02
Christian Wikander16-Mar-05 3:02 
GeneralRe: Transparent background Pin
lmuth16-Mar-05 3:13
lmuth16-Mar-05 3:13 
Before the edit, I was going to ask you exactly what you were trying to do. The "seriously" comment was just because the code otherwise looks like a snide comment on how to set transparency. I have used BackColor = Transparent with success before, but it does have the problem you mention. There's really no good way around it without doing a lot of fancy region work or drawing everything yourself (which is ok for informational controls such as labels but a pain for input controls). Depending on your exact needs, I've found that if all you're doing is non-input controls (labels, images, etc.), painting the whole thing yourself leads to far better results in terms of accuracy and speed.

Of course, if you just need to match a dynamically changing background color to the parent control, you can do yourControl.BackColor = yourControl.Parent.BackColor, but I don't think that's quite what you're after.
GeneralRe: Transparent background Pin
Christian Wikander16-Mar-05 3:18
Christian Wikander16-Mar-05 3:18 
GeneralRe: Transparent background Pin
lmuth16-Mar-05 3:32
lmuth16-Mar-05 3:32 
GeneralRe: Transparent background Pin
spif200116-Mar-05 3:35
spif200116-Mar-05 3:35 
GeneralRe: Transparent background Pin
Sebastian Schneider16-Mar-05 3:46
Sebastian Schneider16-Mar-05 3:46 
GeneralRe: Transparent background Pin
Christian Wikander16-Mar-05 4:09
Christian Wikander16-Mar-05 4:09 
GeneralRe: Transparent background Pin
mav.northwind16-Mar-05 4:56
mav.northwind16-Mar-05 4:56 
GeneralRe: Transparent background Pin
Christian Wikander16-Mar-05 20:36
Christian Wikander16-Mar-05 20:36 
GeneralRe: Transparent background Pin
Christian Wikander16-Mar-05 21:51
Christian Wikander16-Mar-05 21:51 
GeneralRe: Transparent background Pin
mav.northwind16-Mar-05 22:23
mav.northwind16-Mar-05 22:23 
GeneralRe: Transparent background Pin
Christian Wikander16-Mar-05 22:39
Christian Wikander16-Mar-05 22:39 
GeneralRe: Transparent background Pin
mav.northwind16-Mar-05 23:41
mav.northwind16-Mar-05 23:41 
GeneralRe: Transparent background Pin
Christian Wikander16-Mar-05 23:52
Christian Wikander16-Mar-05 23:52 
GeneralC# login page, linkage .. how ? thanks ! Pin
reificap16-Mar-05 1:58
reificap16-Mar-05 1:58 
GeneralRe: C# login page, linkage .. how ? thanks ! Pin
reificap17-Mar-05 14:32
reificap17-Mar-05 14:32 
Generalhtml compare tool Pin
frankDust16-Mar-05 0:56
frankDust16-Mar-05 0:56 
GeneralColor of text in Treeview Pin
Md Saleem Navalur16-Mar-05 0:32
Md Saleem Navalur16-Mar-05 0:32 
GeneralRe: Color of text in Treeview Pin
mav.northwind16-Mar-05 1:00
mav.northwind16-Mar-05 1:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.