Page 2 of 2 FirstFirst 12
Results 26 to 39 of 39

Thread: Project Help

  1. #26
    Join Date
    May 2007
    Location
    Sydney, Australia (Faggot Region)
    Posts
    1,465
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    My dad has it somewhere on some cds need to find it.


  2. #27
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    msdn.microsoft.com ?

    Or just use the internet in general lol. Plenty of VB programming forums

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  3. #28
    Join Date
    May 2007
    Location
    Sydney, Australia (Faggot Region)
    Posts
    1,465
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    vb Code:
    'Student Name(s) : Simon Ly

    'Assignment Number : 1

    'Declaration: I hereby certify that this assignment is entirely my own work, except where I have
    'acknowledged all material and sources used in the preparation of this assignment.

    'I certify that all typing/keystrokes have been done by me.

    'I also certify that the material contained in this assignment has not previously been submitted
    'for assessment in any formal course of study, and that I have not copied in part or whole, or
    'otherwise plagiarised the work of other students and/or persons

    'This program works out the seat reservations for an cinema and keeps track of avialable seats and booked seats.
    Dim t As Double

    Private Sub Combo1_Click()
    If Combo1.Text = "a1" Then
    Combo2.AddItem "b2"
    End If
    End Sub


    Private Sub Command1_Click()
    Dim a As Double
    Dim c As Double
    Dim s As Double


    a = 15.95
    c = 10.95
    s = 8.5


    t = (Text1 * a) + (Text2 * c) + (Text3 * s)

    Label5.Caption = "$" & t

    End Sub

    Private Sub Command2_Click()
    Dim p As Double
    p = t
    p = p - Text4.Text
    Label7.Caption = p
    End Sub

    Private Sub Form_Load()
    Combo1.AddItem "a1"
    Combo1.AddItem "a2"
    Combo1.AddItem "a3"
    End Sub

    Private Sub Timer1_Timer()
    Label35.Caption = TimeValue(Now)
    Label36.Caption = DateValue(Now)
    End Sub


    i havent done the selecting movie with database yet. is there anything i should change?


  4. #29
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Looks ok.

    Start naming them correctly now. Its good practice to name them.

    CMBmovie - Combo Box for selecting Movie
    etc

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  5. #30
    Join Date
    Sep 2009
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rogeruk View Post
    msdn.microsoft.com ?
    I thought they would've taken VS6's library from official site because support has ended ages ago, but there's at least something. :O The ui of that site is still horrible.

  6. #31
    Join Date
    Oct 2008
    Posts
    695
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I would recommend that you use a .ini file which downloads at startup of the program to a random dir OR the dir of the program, either way, you just update the ini, upload to an ftp and there u got an working system.

    Example (don't have code with me atm) :

    [Form load]

    Download ini

    Read ini and put the code in place, like :

    Text1.Text = App.path/random path (if used random).INIFileName."MOVIES"."TIMES"
    I know that might seem stupid but I have the code to make all that work, I'll check back soon and put in the actual code.
    Siggy is out, sry fellas :/

  7. #32
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    INI files are a step back. I wouldnt suggest using them simple because your gonna get marked down for use of data types.

    When you create a database the enduser can simple open it up and can easily alter the data.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  8. #33
    Join Date
    May 2007
    Location
    Sydney, Australia (Faggot Region)
    Posts
    1,465
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    How would i display the day eg like Monday etc.
    Also For seat selecting how would i do that?


  9. #34
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Simtoon View Post
    How would i display the day eg like Monday etc.
    Also For seat selecting how would i do that?
    What the current day?

    I read over your course notes and it says that you have to use a seating class.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  10. #35
    Join Date
    May 2007
    Location
    Sydney, Australia (Faggot Region)
    Posts
    1,465
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Quote Originally Posted by rogeruk View Post
    What the current day?

    I read over your course notes and it says that you have to use a seating class.
    Yes Current Day.

    So how would i do a seating class.?


  11. #36
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Maybe try

    Weekday

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  12. #37
    Join Date
    May 2007
    Location
    Sydney, Australia (Faggot Region)
    Posts
    1,465
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    So how would i do a seating class.?


  13. #38
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The Visual Basic Project must include the use of a class called cinemaSeat. This describes each seat in the cinema which includes:
     Seat type (Adult, Child, Student or Pension)
     Seat Cost
     Seat Location (Eg: A6, C5)
     Seat Available (Stores Y for available and N for taken)
     Book seat function
     Check availability of a seat
     Display seats in cinema
     Calculate total cost
    Note: the program may require more properties and/or functions for this class.
    The Visual Basic Project must also include a two-dimensional array of this aforementioned class, that is, an array of cinema seats. This array
    must be large enough to accommodate all seats in the cinema.
    You need to create a class file to do all that.

    http://msdn.microsoft.com/en-us/library/ms973814.aspx

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  14. #39
    Join Date
    Oct 2008
    Posts
    695
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rogeruk View Post
    INI files are a step back. I wouldnt suggest using them simple because your gonna get marked down for use of data types.

    When you create a database the enduser can simple open it up and can easily alter the data.
    I was thinking more of downloading to a random spot in the computer, rename to something random and THEN open it, that'll make it alot harder to find, OR at startup it downloads ini and runs, that way there only way to alter is to unplug your internet, and whats the point in that?
    Siggy is out, sry fellas :/

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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