Currently in the process of creating a simple (what I thought was simple) visual piano project that can be operated by both clicking the buttons on screen and using the keyboard.
I would like to have a visual signal on the screen that shows what note I played based on what key I pressed on the keyboard. I'd like to do this by changing the backcolor property. I am trying to avoid having to copy and paste
btnC.BackColor = Color.White;
btnD.BackColor = Color.White;
btnE.BackColor = Color.White;
etc. in to every keydown function.
Any tips or suggestions are greatly appreciated. Thank you in advance.