Assigning values to a Two dimensional Array

I have a client server program. The client are the students so I've made a seat plan that generates two dimensional button arrays.

Button[,] btnSeat = new Button[8, 6]; 

How can I assign the client's hostname to each button once a client is online? Assuming there is already a hostname. Assign the first user who goes online to the first array[0,0] and the second to array[0,1] and so on….?

by front11 via /r/csharp

Leave a Reply