Welcome to Dream.In.Code
Become a VB Expert!

Join 149,922 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,965 people online right now. Registration is fast and FREE... Join Now!




Help with Deal Or No deal in VB6

 
Reply to this topicStart new topic

Help with Deal Or No deal in VB6, i have some codes for the game deal or no deal..i dont know if it work

MissDesiChick
6 Jan, 2008 - 10:09 AM
Post #1

New D.I.C Head
*

Joined: 18 Dec, 2007
Posts: 6


My Contributions
I want to make the program..i am stuck in the first part of it..if you guyz can contribute some help i can try to improve the project by myself and if i still have problems, i hope you guys wont mind for helping me again..as such i am duh in Visual Basic..i hardly get anything smile.gif The codes are written below..



CODE
Form 1

Private Sub cmdStart_Click()
    
    Form1.Hide
    Form2.Show
                      
End Sub

Form 2

Dim X As Integer
Dim Randomamount As Integer

Private Sub cmdClear_Click()
    
    lblResult.Caption = ""
    
End Sub

Private Sub cmdExit_Click()
    
    End
    
End Sub

Private Sub cmdNext_Click()
    
    'After winning some amount of money, the user can either move on with the same round twice or may go to a next level.
    
End Sub

Private Sub cmdPrint_Click()
    
    PrintForm
    
End Sub

Private Sub Form_Load()
    
    Randomize X
    X = Randomamount
End Sub

Private Sub Option1_Click()
        
    If Option1.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                              
    Else: lblResult.Caption = " "
    
    End If
                                    
End Sub


Private Sub Option2_Click()
    
    If Option2.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
    
    Else: lblResult.Caption = " "
    
    End If
      
End Sub

Private Sub Option3_Click()
    
    If Option3.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                              
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option4_Click()
    
    If Option4.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
          
End Sub

Private Sub Option5_Click()
    
    If Option5.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option6_Click()
    
    If Option6.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option7_Click()
    
    If Option7.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
  
End Sub

Private Sub Option8_Click()
    
    If Option8.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
    
End Sub

Private Sub Option9_Click()
    
    If Option9.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                              
    Else: lblResult.Caption = " "
    
    End If
  
End Sub

Private Sub Option10_Click()
    
    If Option10.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
        
    End If
    
End Sub

Private Sub Option11_Click()
        
    If Option11.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                            
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option12_Click()
    
    If Option12.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                            
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option13_Click()
    
    If Option13.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option14_Click()
    
    If Option14.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option15_Click()
    
    If Option15.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option16_Click()
    
    If Option16.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option17_Click()
    
    If Option17.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
            
End Sub

Private Sub Option18_Click()
    
    If Option18.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
    
End Sub

Private Sub Option19_Click()
    
    If Option19.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
    
End Sub

Private Sub Option20_Click()
    
    If Option20.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
        
End Sub


This post has been edited by jjhaag: 6 Jan, 2008 - 10:45 AM
User is offlineProfile CardPM
+Quote Post

Tom9729
RE: Help With Deal Or No Deal In VB6
6 Jan, 2008 - 10:23 AM
Post #2

Debian guru
Group Icon

Joined: 30 Dec, 2007
Posts: 1,589



Thanked: 12 times
Dream Kudos: 325
My Contributions
Please post your code inside code tags. Like this code.gif

Also, this should be in the Visual Basic forum. A moderator will likely move this thread there, but next time try to post in the right place. smile.gif
User is online!Profile CardPM
+Quote Post

soona
RE: Help With Deal Or No Deal In VB6
6 Jan, 2008 - 11:47 AM
Post #3

New D.I.C Head
*

Joined: 11 Dec, 2007
Posts: 4


My Contributions
crazy.gif crazy.gif
User is offlineProfile CardPM
+Quote Post

benpap
RE: Help With Deal Or No Deal In VB6
6 Jan, 2008 - 02:26 PM
Post #4

New D.I.C Head
Group Icon

Joined: 24 Nov, 2007
Posts: 44


Dream Kudos: 100
My Contributions
hey, nice code!
User is offlineProfile CardPM
+Quote Post

Jayman
RE: Help With Deal Or No Deal In VB6
6 Jan, 2008 - 03:05 PM
Post #5

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 7,317



Thanked: 66 times
Dream Kudos: 500
Expert In: Everything

My Contributions
Can you describe in a little more detail what you are stuck on?
User is offlineProfile CardPM
+Quote Post

rabbit_slayer
RE: Help With Deal Or No Deal In VB6
9 Jan, 2008 - 01:21 AM
Post #6

D.I.C Head
**

Joined: 30 Sep, 2007
Posts: 67


My Contributions
that's a lot of Ifs and Thens tongue.gif
User is offlineProfile CardPM
+Quote Post

MissDesiChick
RE: Help With Deal Or No Deal In VB6
15 Jan, 2008 - 11:01 AM
Post #7

New D.I.C Head
*

Joined: 18 Dec, 2007
Posts: 6


My Contributions
i am stuck with how to offer the bank offer...as such you know how it goes in the game...that when the bag opened has less amount of money, the bank offer would be higher..and if amount opened is more, then the bank offer is low...now i basically need help with that...

i know there are more ifs and thens...but thats wat i have been taught...the thing is..where i study, they didnt teach us C++ nor Visual Basic...the only thing my sir does is giving us exercises and explore on our own...but honestly i dont know anything... blink.gif crazy.gif
sorry about the codes that are placed improperly...
the codes are below:
CODE
Form 1

Private Sub cmdStart_Click()
    
    Form1.Hide
    Form2.Show
                      
End Sub

Form 2

Dim X As Integer
Dim Randomamount As Integer

Private Sub cmdClear_Click()
    
    lblResult.Caption = ""
    
End Sub

Private Sub cmdExit_Click()
    
    End
    
End Sub

Private Sub cmdNext_Click()
    
    'After winning some amount of money, the user can either move on with the same round twice or may go to a next level.
    
End Sub

Private Sub cmdPrint_Click()
    
    PrintForm
    
End Sub

Private Sub Form_Load()
    
    Randomize X
    X = Randomamount
End Sub

Private Sub Option1_Click()
        
    If Option1.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                              
    Else: lblResult.Caption = " "
    
    End If
                                    
End Sub


Private Sub Option2_Click()
    
    If Option2.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
    
    Else: lblResult.Caption = " "
    
    End If
      
End Sub

Private Sub Option3_Click()
    
    If Option3.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                              
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option4_Click()
    
    If Option4.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
          
End Sub

Private Sub Option5_Click()
    
    If Option5.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option6_Click()
    
    If Option6.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option7_Click()
    
    If Option7.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
  
End Sub

Private Sub Option8_Click()
    
    If Option8.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
    
End Sub

Private Sub Option9_Click()
    
    If Option9.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                              
    Else: lblResult.Caption = " "
    
    End If
  
End Sub

Private Sub Option10_Click()
    
    If Option10.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
        
    End If
    
End Sub

Private Sub Option11_Click()
        
    If Option11.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                            
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option12_Click()
    
    If Option12.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                            
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option13_Click()
    
    If Option13.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option14_Click()
    
    If Option14.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option15_Click()
    
    If Option15.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option16_Click()
    
    If Option16.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
        
End Sub

Private Sub Option17_Click()
    
    If Option17.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
            
End Sub

Private Sub Option18_Click()
    
    If Option18.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
    
End Sub

Private Sub Option19_Click()
    
    If Option19.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
    
End Sub

Private Sub Option20_Click()
    
    If Option20.Enabled Then lblResult.Caption = "You have some amount in this. This bag is yours! Click on next button to proceed."
                                                
    Else: lblResult.Caption = " "
    
    End If
        
End Sub


This post has been edited by MissDesiChick: 15 Jan, 2008 - 11:03 AM
User is offlineProfile CardPM
+Quote Post

Jayman
RE: Help With Deal Or No Deal In VB6
15 Jan, 2008 - 11:16 AM
Post #8

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 7,317



Thanked: 66 times
Dream Kudos: 500
Expert In: Everything

My Contributions
Well I am not sure exactly what the formula is that they use for the game. However, one way you could determine what the bank offer will be is to add all the remaining amounts on the board that haven't been selected and do an average.

For example, if the only dollars amounts that had not been selected were $1, $50, $1000, $100000. You add them together to get $101050 and divide that by 4 ( 4 amounts remain on the board) you will get $25262 as the bank offer.

Just an idea of one way it could be done.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 02:51PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month