Results 1 to 9 of 9

Thread: movie ticket selling machine

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Posts
    18

    movie ticket selling machine

    I want to know how to write a program that allows a user to select what movie they want to see (out of about 4) and the time they want to watch it at. The program would allow the user to select a movie, select a time for the movie, enter the number of tickets they desire, and view the amount due. i've got pics of the movie posters and I want it to be on the side in the box where you select the movie etc.

    Also Im putting in a string for movie times:

    Dim strTimes(,) As String = { _
    {"01:00 PM", "03:00 PM", "05:00 PM", "07:00 PM", "09:00 PM", "11:00 PM"}, _
    {"01:15 PM", "03:15 PM", "05:15 PM", "07:15 PM", "09:15 PM", "11:15 PM"}, _
    {"01:30 PM", "03:30 PM", "05:30 PM", "07:30 PM", "09:30 PM", "11:30 PM"}, _
    {"01:45 PM", "03:45 PM", "05:45 PM", "07:45 PM", "09:45 PM", "11:45 PM"}}


    Thanks

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Toronto, Ontario, Canada
    Posts
    275
    r u sure thats vb.net code?

  3. #3
    Fanatic Member Geespot's Avatar
    Join Date
    Oct 2001
    Location
    Birmingham, UK
    Posts
    577
    GUnit216
    Could you please explain your problem? I understand you want to make a program, but you havn't stated what you having trouble with

    area91
    yes thats VB.NET code, pretty neat huh

  4. #4
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651
    GUnit216
    Thats an interesting project but, I might be wrong, you seem to be a beginner in VB.NET. I would suggest you first learn how to use buttons, selection lists, images, event handling and then attempt this project. Of course nothing prevents you from using this project as a learning exercise.
    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Posts
    18
    Basically I want to know how to set up the window box so that they can choose the movie then click ok then get a new window box with times where it has the movie poster picture, new box where they purchase desired amount, and then finally the billing statement.

  6. #6
    Fanatic Member Geespot's Avatar
    Join Date
    Oct 2001
    Location
    Birmingham, UK
    Posts
    577
    Originally posted by GUnit216
    Basically I want to know how to set up the window box so that they can choose the movie then click ok then get a new window box with times where it has the movie poster picture, new box where they purchase desired amount, and then finally the billing statement.
    It sounds like you have very little to none programming experience, this true?
    if so, i HIGHLY suggest you get a VB.NET book as soon as possible as the internet can only teach so much

    just experiment with controls and such, heres a super quick tutorial

    1. Create new windows application
    2. add a new windows form to the project ( you will have two then )
    3. drag a button onto form1
    4. double click the button
    5. type the following

    VB Code:
    1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    2.         Dim f As Form2 = New Form2()
    3.         f.Show()
    4.     End Sub

    6. run the program and click the button

    of course that just a basic thing, you really have to think about what type of application it is going to be

    MDI with multiple forms?
    Dialog with alot of hiding and showing of controls?

    as i said earlier, a book should be one of the first things you do, i believe every programmer should have at least one book for the language they use

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Posts
    18
    Yea I am a beginner and I looked in one book and I cant even figure out how to do it from that, plus I dont have VB.NET on this computer.

    Are there at least any tutorials you could direct me to that have info on all of that?

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Posts
    18
    Yea what I was thinking of is multiple forms with the first one where you select the movie then it takes you to the desired form for whichever movie and you have the times to select from and the movie poster too in the form. Then it would ask how many tickets you want to purchase and automatically calculate the rate that the customer is charged on the final form.

    Any ideas?

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Posts
    18
    up

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width