G
Guest
Hi,
I'm new to this so I could really do with some help!
I am using VB.net to create a small game. basically there is a Textbox, a
button and a listbox.
The user enters a number into the textbox which is then validated against a
random number which is generated using the Rnd function. When the user clicks
the button, they either get a message saying Too Low, Too High or Spot On.
This number is then copied into the listbox as a reminder of whats been
guessed.
What I need is a function to run which checks whats already been entered and
displays a message saying that its "already been tried" if its in the listbox.
Basically, HOW do i do this? I have tried trawling the net and newsgroups
and books but cant work it out.
Can anyone help?
I'm new to this so I could really do with some help!
I am using VB.net to create a small game. basically there is a Textbox, a
button and a listbox.
The user enters a number into the textbox which is then validated against a
random number which is generated using the Rnd function. When the user clicks
the button, they either get a message saying Too Low, Too High or Spot On.
This number is then copied into the listbox as a reminder of whats been
guessed.
What I need is a function to run which checks whats already been entered and
displays a message saying that its "already been tried" if its in the listbox.
Basically, HOW do i do this? I have tried trawling the net and newsgroups
and books but cant work it out.
Can anyone help?