User Profile
Collapse
-
yea i started of with lables but then I thought it would be great if user could click the seat wanting to seat in and once clicked the locationof the button in the button array would be assigned to the seatassign array, but I have know clue how to do that I tried to add a click event to buttons but i didn't know how to pull out the buttons loc in array -
WOW!!!!
This is great thank you soooo much. This is very helpful.
I actually constructed a contorl array of buttons to display seat assignments, thank you for the suggestionLeave a comment:
-
Searching a two dimensional array
Does anyone know how to search a two dimensional array. I know how to do a one dimenisonal array but not a two dimensional.
Thank you in advance for your advise -
yes i agree that is actually my next step and goal. wish me look I'm sure I will be back for more suggestions.Leave a comment:
-
thank you for the suggesting, it is due to copy & pasteing code.
yes this worked I new it was very simple thank you very much.
I have another question.
Before I added a click event to the buttons created in the control array.
Is there a way to assign the positon based on what btn is clicked on to another array.
in other words if user clicks btn located at btnresvseat(1,1 )...Leave a comment:
-
First and foremost I want to say thank you I really appreciate any help you may be able to give.
I have modified the code since that last posting,
and my previous problem has been resolved
i moved my subprocedures which calls the control arrays
Dim btnSeatResv(9, 3) As Button
Dim lblSeatNum(4) As Label
Dim lblRowNum(10) As Label
to form load and it works now.
My new...Leave a comment:
-
Two dimension Arrays
I posted my problem in ref to my Airline Reservation Program. I am using VB 2005 for this program
I have to right a program that req a users name for a text box then assigns the user a seat (row(x), seat(x). The seat assignment is based on a two dimensional array seatingchart(9, 3). When the user enters name in the text box a click event must be activated in order to store the passenger in a variable string passenger. I also have... -
Unfortunalty I was unable to download the zip file. Could you briefly explain the code for me.Leave a comment:
-
Help I am new to VB and have a program due
I have to write a program that will do the following
Write a reservation system for an airline flight (based on problem #7 pages 406). Assume the airplane has 10 rows with 4 seats in each row. Use a two dimensional array of strings to maintain a seating chart with passengers’ names and another two dimensional control array to show available seats on the form (see example 2 page 380). In addition, create an array to be used as a waiting...
No activity results to display
Show More
Leave a comment: