Results 1 to 8 of 8

Thread: someone help me with a couple of visual basic 3.0 codes please

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Location
    Launceston, Tasmania, Australia
    Posts
    6

    Post

    O.k I'm new at Visual basic and 3.0 was the only copy i coud get my hands on, and i need some help so if anyone can give me some example of the code i need i'd appreciate.

    1. How to i make an animated graphic?
    2. How do i play music in Visual basic 3.0 and which formats of music and sounds does it support?
    3.I can get a message box up with an ok and cancel button, but when u press the canel button it won't exit out of the program.

    someone please help me like i said i am new and these codes will probably be really easy for you so please help.

  2. #2
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    Number 3 Answer:

    Code:
    Private Sub Form_Unload(Cancel As Integer)
        Dim RetVal As VbMsgBoxResult
        RetVal = MsgBox("You are about to exit!", vbOKCancel, "Exit")
        If RetVal = vbCancel Then Cancel = True
    End Sub
    ------------------
    Tom Young, 14 Year Old
    [email protected]
    ICQ: 15743470
    AIM: TomY10
    PERL, JavaScript and VB Programmer

  3. #3
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Post

    Summed up to one line of code:

    Private Sub Form_Unload(Cancel As Integer)
    Cancel = (MsgBox("You are about to exit!", vbOKCancel, "Exit") = vbCancel)
    End Sub


    ------------------
    Yonatan
    Teenage Programmer
    E-Mail: [email protected]
    ICQ: 19552879



  4. #4
    Addicted Member
    Join Date
    Jul 1999
    Posts
    219

    Post

    hey im going to be nice nad tell you where to get vb 5 enterprise or vb 4 i would d/l 5 but take to long

    HTTP://www.strgame.com/appz.html

  5. #5
    Addicted Member
    Join Date
    Jul 1999
    Posts
    219

    Post

    hey im going to be nice nad tell you where to get vb 5 enterprise or vb 4 i would d/l 5 but take to long

    HTTP://www.strgame.com/appz.html

  6. #6
    Addicted Member
    Join Date
    Jul 1999
    Posts
    219

    Post

    hey im going to be nice nad tell you where to get vb 5 enterprise or vb 4 i would d/l 5 but take to long

    HTTP://www.strgame.com/appz.html

  7. #7
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    Evil: That is warez and press the submit button only once.. the forum isn't going anywhere... no need to hurry.

  8. #8

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Location
    Launceston, Tasmania, Australia
    Posts
    6

    Post

    to the first 2 replies, they work on the unload function but the message box i am using is on the load function and i want it so when u click ok it will enter my program and when u click cancel for it to exit the program.

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