I'm trying to create a form with white label inside, that when I click on something the form will disappear and only show the label. So far I tried to put the TransparencyKey on Lime and when I click on something I changed the BackColor to Lime and set the FormBorderStyle to None. But the problem is with what I'm doing right now is that the white label has no borders, so You can't really see it. I know about the BorderStyle property and this is not what I want, I want the border to be exactly around the text so you can see the text above other things. Is there any way to add borders to a label?
Here's my code, by the way:
private void label1_Click(object sender, EventArgs e)
{
if (BackColor == Color.Lime)
{
FormBorderStyle = FormBorderStyle.Sizable;
BackColor = Color.Black;
Location = new Point(Left - 8, Top - 30);
}
else
{
FormBorderStyle = FormBorderStyle.None;
BackColor = Color.Lime;
Location = new Point(Left + 8, Top + 30);
}
}