PDA

Click to See Complete Forum and Search --> : someone help me with a couple of visual basic 3.0 codes please


n1s
Nov 11th, 1999, 07:45 PM
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.

Compwiz
Nov 12th, 1999, 03:18 AM
Number 3 Answer:


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
tyoung@stny.rr.com
ICQ: 15743470
AIM: TomY10
PERL, JavaScript and VB Programmer

Yonatan
Nov 12th, 1999, 03:22 AM
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: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)

XxEvilxX
Nov 12th, 1999, 05:31 AM
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

XxEvilxX
Nov 12th, 1999, 05:31 AM
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

XxEvilxX
Nov 12th, 1999, 05:32 AM
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

Compwiz
Nov 12th, 1999, 05:52 AM
Evil: That is warez and press the submit button only once.. the forum isn't going anywhere... no need to hurry.

n1s
Nov 12th, 1999, 08:24 AM
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.