Evil Transparency!

Illusion

Well-known member
Joined
Aug 7, 2003
Messages
105
Location
Uk
Hi,

I wondered if anyone could help me ..

I _NEED_ my panels and labels to show the background ... Ive read the other posts and it seems that this is impossible without drawing it ....

Is there another way? .. I have tried setting the forms transparency colour ( to magenta) and the control to the same colour ... this works.. but I dont want to see through the form itself.

If I have to use system.drawing could someone please show me how to use it and also use it with panels ... as they are required..

---

another problem I am having is calling two keys

Forms.SendKeys.SendWait("%{ALT}" & "%{PRTSC}")

It doesnt understand ALT ... am I missing something?
 
Nope... just did and got this

Additional information: Keyword "ALT-Key" not valid.

edited: I did only add -Key to the code, so it looks like this now.

Forms.SendKeys.SendWait("%{ALT-Key}" & "%{PRTSC}")
 
This will work only if the panel supports transparency:
this.panel.BackgroundColor= Color.FromArgb(0,0,0,0);
 
Hi,

I have found out that % means ALT ... but it does not ALT+PRTSC on a child window .. it still copys the mdi window ... :(

"%{PRTSC}" means ALT+PRINTSCREEN in case anyone wants to know.

----


and that transparency issue is still the same, it wont work..
Im guessing i am going to have to paint it on ....
could someone give me a hand or point me in the direction of a paint tutorial which is very easy for me :)
 
could you post your code?
Did you do this:
this.panel.BackgroundColor= Color.FromArgb(0,0,0,0);
 
I have a form that has this in it and works fine:
C#:
foreach(Control c in this.Controls)
							{
								try
								{
									if(c is Label || c is GroupBox || c is Panel || c is LinkLabel || c is Button || c is CheckBox || c is RadioButton)
										((Control)c).BackColor= Color.FromArgb(0,0,0,0);
								}
								catch() {}
 
Back
Top