Hi NachoShaw-9496,
First, I add User Control(UserControl1) in project.(Right click project name ->Add->User Control)
Then drag panel control form ToolBox to UserControl1 in UserControl1.cs[Design] window.
And using your code as follows:
private void UserControl1_Load(object sender, EventArgs e)
{
panel1.BackColor = Color.FromArgb(25, 100, 100, 100);
}
It worked fine.
So do you want to create a transparent panel or a transparent usercontrol?
And what does top/ sub level mean in your description?
Where is your usercontrol?
Please provide more details to reproduce the situation.
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.