Here is the code where I define SegundaTela
:
public partial class Form1 : Form
{
SegundaTela telaSecundaria;
}
Code:
telaSecundaria = new SegundaTela();
telaSecundaria.label_segunda_tela.BackColor.Name = cor_fundo;
I get error:
CS0200 The property or indexer "Color.Name" can not be because it is read-only
Any solution?