while trying to change button color or border color on click with code below:
private void LoggerStart_Click(object sender, EventArgs e)
{
if (LoggerStart.Text == "Start")
{
//?
LoggerStart.Text = "Stop";
LoggerStart.IdleBorderColor = Color.Red;
}
else
{
LoggerStart.Text = "Start";
}
}
the color changes for a short time, and returns to it's default color instantly!.
I expected to get the new color but it gets back to default shortly!
Try to use other comparsion, ex. based on buttons color/border color