How can the background color of a button once another button is pressed?
What I have at the moment is:
ButtonToday.Background = Color.Red;
And it's not working.
WinForm:
private void button1_Click(object sender, EventArgs e) { button2.BackColor = Color.Red; }
WPF:
private void button1_Click(object sender, RoutedEventArgs e) { button2.Background = Brushes.Blue; }
2.1m questions
2.1m answers
60 comments
57.0k users