Join for FREE | Take the Tour Lost Password?
Shop deviantART for the
holidays and save BIG!
Click here! :holly:
[x]

deviantART

 

vomittttttt

Mon Nov 27, 2006, 6:26 AM
  • Mood: Anger
  • Reading: visual basic.net book?
  • Watching: ..printers...printing things.
  • Playing: .....
  • Eating: .....
  • Drinking: .....they starve us at school.
Private Sub picshell_click(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles picshell1.Click, picshell2.Click, picshell3.Click

'Determine which shell was clicked by user

Dim picshellclicked As PictureBox = sender
Dim intshellclicked As Integer = Val(picshellclicked.Tag)

'pick the shell that hides the pearl
Randomize()
Dim intshellwithpearl As Integer = Int(3 * Rnd()) + 1

'show the pearl

Select Case intshellwithpearl
Case 1
Me.picpearl1.Visible = True
Case 2
Me.picpearl2.Visible = True
Case 3
Me.picpearl3.Visible = True

End Select

'display message to player
If intshellclicked = intshellwithpearl Then
MessageBox.Show(" You won!! ")
Else
MessageBox.Show(" Sorry you lose! ")
End If

'hide pearl again
Select Case intshellwithpearl
Case 1
Me.picpearl1.Visible = False
Case 2
Me.picpearl2.Visible = False
Case 3
Me.picpearl3.Visible = False

End Select

End Sub
End Class




DOES THAT LOOK FUN!?

not.

omg.

i didnt wanna go to school today

Devious Comments

love 0 0 joy 0 0 wow 0 0 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconbloodredthrone123:
I dont even no what it all means. So the anwser to your question is no.

--
'When darkness falls there will be war'
:iconxxbullettheoryxx:
hahhahahahahahahaahahahahaha

its a little cheesy game actually.

--
someone buy me a subscription and i will love you forever
love is what simply exists, without question, without doubt
:iconbloodredthrone123:
lol cool. Hows the game cheesy?

--
'When darkness falls there will be war'
:iconxxbullettheoryxx:
you gotta click shells to see which gives you the pearl.

hence, cheesy.

--
someone buy me a subscription and i will love you forever
love is what simply exists, without question, without doubt

Journal History

Site Map