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; }
1.4m articles
1.4m replys
5 comments
57.0k users