how to select more picturebox control together in sequence?
i develop movie ticket booking software,i used picturebox control for seats and textbox control for no.of ticket when user put value of no.of ticket (forexample,no.of ticket 4 so i select 4 seats in sequence not randomly)how to make function of that.
Iftikar HussainPosted Jul 26, 2013, 10:41 AM
string seatNo = pictureBox.Name.Replace("picturebox_", string.Empty);
string seatNo = seatNo.Replace("a", string.Empty);
string seatNo = seatNo.Replace("k", string.Empty);
Regards,
Iftikar
Iftikar HussainPosted Jul 28, 2013, 1:53 AM
private int _availableSeat;
_availableSeat=10 - _totalNoOfBookedSeat
Then whenever you book the seat (on the picture box click) decrease the number by 1
_availableSeat--;
Regards,
Iftikar
Dipika ShahPosted Jul 27, 2013, 11:15 PM
Dipika ShahPosted Jul 26, 2013, 12:51 PM
Dipika ShahPosted Jul 26, 2013, 10:35 AM
but i have error Input string was not in a correct format..
i used picturebox control for seat and my seats rows a1,a2...a16 to
k1,k2....k16
my seat name is picturebox_a1 to picturebox_k16
can u give me solution of this?
Iftikar HussainPosted Jul 25, 2013, 12:18 PM
Please find the attached code for basic functionality.
Regards,
Iftikar