Feb 21st, 2009, 12:33 AM
#1
Thread Starter
Addicted Member
VB6 BlackJack
K i made a near fully functioning blackjack excluding only the split.
i would like to give a HUGE shoutout to techorobbo, he helped me with a lot of coding evident by this thread
anywhere heres the attached ment, tell me what you think
EDIT: link reuploaded, there was an issue with the application not actually closing that has been resolved
Attached Files
Last edited by Cruncher; Feb 23rd, 2009 at 09:55 PM .
Feb 23rd, 2009, 08:53 AM
#2
Hyperactive Member
Re: VB6 BlackJack
I just tried this and after I quit the game blackjack.exe was still running. You may want to look into this.
If I helped you please
rate me.
Feb 23rd, 2009, 03:13 PM
#3
Thread Starter
Addicted Member
Re: VB6 BlackJack
I noticed that, do you know how thats fixable? do i need to put a button that actually runs the end command? i beleive the standard windows "x" should do the job :S
Feb 23rd, 2009, 03:19 PM
#4
Hyperactive Member
Re: VB6 BlackJack
Is that form your main form?
If I helped you please
rate me.
Feb 23rd, 2009, 03:28 PM
#5
Thread Starter
Addicted Member
Re: VB6 BlackJack
i have 4 forms dialog dialog 2 dialog 3 and Form1(the main form where blackjack is played)
Feb 23rd, 2009, 03:50 PM
#6
Hyperactive Member
Re: VB6 BlackJack
hmmm. if that is the main application form then it should be exiting. One way you may be able to fix it is by adding:
Code:
Application.Exit();
to the forms closing or closed event.
If I helped you please
rate me.
Feb 23rd, 2009, 03:53 PM
#7
Re: VB6 BlackJack
Please do not inclide exe files in you upload.
Sometimes the Programmer
Sometimes the DBA
Mazz1
Feb 23rd, 2009, 04:50 PM
#8
Fanatic Member
Re: VB6 BlackJack
If you have multiple forms the app wont end until all forms are unloaded. A hidden form is not unloaded so specifically unload the form.
example
Feb 23rd, 2009, 06:02 PM
#9
Re: VB6 BlackJack
Originally Posted by
Cruncher
do i need to put a button that actually runs the end command? i beleive the standard windows "x" should do the job :S
The "X" just tells that particular form to unload, what else happens is up to you.
There are a couple of articles about this in our Classic VB FAQs (in the FAQ forum, which is shown near the top of our home page) .
First off, there is Why is using the 'End' statement (or VB's "stop" button) a bad idea?
Then for an explanation (and example code) for how you should be closing a form/program, see the article How should I close my form/program/class?
Feb 23rd, 2009, 09:49 PM
#10
Fanatic Member
Re: VB6 BlackJack
Cruncher,
Put this code in your Blackjack.frm and it should fix it up
Code:
Private Sub Form_Unload(Cancel As Integer)
Dim f As Form
For Each f In Forms
Unload f
Next
End Sub
Feb 23rd, 2009, 09:54 PM
#11
Thread Starter
Addicted Member
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