I'm working on a project and I need to set the BackColor of my textboxes to Transparent. I know I should paste some code in the "constructor", but I don't know where I can find it. I'd really appreciate someone explaining everything in detail, I'm pretty new to winforms.
This Question is different from other questions because I'm looking for better explanation.
This is what I wanted to do in my code:
textBox1.Visible = false;
textBox1.BorderStyle = BorderStyle.None;
textBox1.Text = "Nexuspractice";
//textBox1.BackColor = Color.Transparent;
textBox2.Visible = false;
textBox2.BorderStyle = BorderStyle.None;
textBox2.Text = "Confusionpractice";
//textBox2.BackColor = Color.Transparent;
Commented sections don't work, because transparent BackColors are not allowed by default. I hope someone could make a good guide on how to allow it, I'm sure it'd be helpful for other people with this problem.