Quantcast
Viewing all articles
Browse latest Browse all 27072

VS 2010 Linking Buttons to a Text File (or Alternative)

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
Code:

For Each ctrl As Control In Me.Controls
to make all the buttons perform the same event

Viewing all articles
Browse latest Browse all 27072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>