|
-
Nov 11th, 1999, 08:45 PM
#1
Thread Starter
New Member
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.
-
Nov 12th, 1999, 04:18 AM
#2
Hyperactive Member
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
-
Nov 12th, 1999, 04:22 AM
#3
Guru
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
-
Nov 12th, 1999, 06:31 AM
#4
Addicted Member
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
-
Nov 12th, 1999, 06:31 AM
#5
Addicted Member
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
-
Nov 12th, 1999, 06:32 AM
#6
Addicted Member
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
-
Nov 12th, 1999, 06:52 AM
#7
Hyperactive Member
Evil: That is warez and press the submit button only once.. the forum isn't going anywhere... no need to hurry.
-
Nov 12th, 1999, 09:24 AM
#8
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|