I’ve been looking around and I’ve never found a real direct answer. Right now, I’m trying
public frmGameWindow()
{
InitializeComponent();
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.SupportsTransparentBackColor, true);
}
private void frmGameWindow_Load(object sender, EventArgs e)
{
imgSrc.BackColor = Color.Transparent;
lblName.BackColor = Color.Transparent;
}
Yet it’s still giving the controls above the background color of the parent (in this case, the form itself). I’m attempting to write a very basic game engine to help with my C# studies using strictly features built into a standard install of Visual Studio 2010.
Override the controls & create your own in which you can Override methods. Here are a few overrides you can try: