Windows form I would like to see that if a button was clicked, it will change color, and when the program closes, it will be shown again but with the color changed. Only if you clicked on it.
private bool Clicked;
private void btnA100_Click(object sender, EventArgs e)
{
Clicked = true;
this.btnA100.BackColor = Color.LightSlateGray;
txtNHabit.Text = "A100";
}
private void frmRegistrar_Load(object sender, EventArgs e)
{
if (Clicked==true)
{
this.btnA100.BackColor = Color.LightSlateGray;
}
//this.btnA101.BackColor = Color.LightSlateGray;
}