//Hi, I want to write a Software and am confused about "keeping the buttom selected (i mean the background color) when button is clicked, until i click on another one"
If someone could help me, i would appreciate that so much. Thanks in advance//
namespace SoftwareUI
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
button1.ForeColor = Color.LightGray;
}
private void button1_Leave(object sender, EventArgs e)
{
button1.ForeColor = Color.GhostWhite;
}
private void button1_MouseEnter(object sender, EventArgs e)
{
button1.ForeColor = Color.LightSlateGray;
}
}
}