By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,292 Members | 1,721 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,292 IT Pros & Developers. It's quick & easy.

Can not make a control transparent. Help!

P: n/a
Can not make a control transparent in XP.

Please help me.

Thanks!

public class Class1 : System.Windows.Forms.CheckBox
{

public Class1()
{
this.Left=50;
this.Top=50;
this.Width=32;
this.Height=32;

this.SetStyle(ControlStyles.SupportsTransparentBac kColor, true);
this.BackColor=Color.Transparent;
}

}//

//FORM
public Form1()
{
Class1 obj=new Class1();
this.Controls.Add(obj);
}

Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Maybe you should make the parent form Transparent? Check Opacity property of
the parent form.

============================
Hayato Iriumi (hi*****@hotmail.com)
Blog: http://www.vbaspcoder.com
"Daimy" <da***@21cn.com.disscuss> wrote in message
news:e3**************@TK2MSFTNGP15.phx.gbl...
Can not make a control transparent in XP.

Please help me.

Thanks!

public class Class1 : System.Windows.Forms.CheckBox
{

public Class1()
{
this.Left=50;
this.Top=50;
this.Width=32;
this.Height=32;

this.SetStyle(ControlStyles.SupportsTransparentBac kColor, true);
this.BackColor=Color.Transparent;
}

}//

//FORM
public Form1()
{
Class1 obj=new Class1();
this.Controls.Add(obj);
}


Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.