Hello, I have a text file whereby each line contains the elements: SeatID | SeatType | SeatPrice | SeatAvailability
For example:
SeatA1 | Student | 20 | Reserved
SeatB1 | Adult | 30 | Reserved
I also have a grid of manually placed buttons on a form. I was wondering whether it was possible to assign each line of the text file to each button so that a specific record is displayed when a certain button is pressed. Otherwise, is there an easier way to do this?
I'm using
to make all the buttons perform the same event
For example:
SeatA1 | Student | 20 | Reserved
SeatB1 | Adult | 30 | Reserved
I also have a grid of manually placed buttons on a form. I was wondering whether it was possible to assign each line of the text file to each button so that a specific record is displayed when a certain button is pressed. Otherwise, is there an easier way to do this?
I'm using
Code:
For Each ctrl As Control In Me.Controls