VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Basic guess the number game!

by Dustifer (1 Submission)
Category: Games
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Originally Published: Fri 19th May 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Basic guess the number game!

Rate Basic guess the number game!



'I am a 12 year old kid who sits at his computer all day
'you will need: 1 textbox, 1 label(optional), and 1 command button.
'make the textbox name "txtnumber"
'make the command button name "cmdguess"
'if you have a label name it "labeloutcome"

'paste this code into the command button
dim intpress as integer
If txtnumber.text = "3" then
Labeloutcome.caption = "Great job!"
Else
MsgBox "Nope!"
end if
end sub

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
= This is your basic guess the number game!!!!!! have fun  +
+ with it!                                                 =
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+

Download this snippet    Add to My Saved Code

Basic guess the number game! Comments

No comments have been posted about Basic guess the number game!. Why not be the first to post a comment about Basic guess the number game!.

Post your comment

Subject:
Message:
0/1000 characters