There is a two-dimensional array arr [5, 5] and on the form 25 buttons located 5 by 5 How to match the element of this array to a specific button, that is, when you click on a button, the value of an element in the array (or in neighboring elements) changes? In other words, I want to somehow index the button element so that I can stick it into a loop.

  • WPF or WinForms? - VladD 5:14
  • Use an array of buttons? - Qwertiy
  • WindowsForms Trying with an array of buttons, thanks - Draktharon

0