You're Browsing As A Guest! Register Now... |
||
|
Become a VB Expert!
Join 415,718 VB Programmers for FREE! Get instant access to thousands
of VB experts, tutorials, code snippets, and more! There are 998 people online right now.Registration is fast and FREE... Join Now!
|
||
Page 1 of 1
randomized flash card generator I need help, very baddly!
#1
randomized flash card generator
Posted 10 November 2008 - 12:18 AM
OK, so, here is my problem. You see, a while back, maybe a month, a school teacher asked a friend of a friend if they could make a program for them, all tried and failed. It has now fallen unto me.
The program sounds simple enough; basically roughly 60 images are stored in a folder. The program randomly calls 20 or so images and displays then on the screen for 10 minutes. After the ten minutes, the images disappear. Simple enough. I started this in Game Maker 6, something that should have worked. Some how or another I failed, it does not work and I am beating my head into the floor. Then one friend suggested using VB, as it is fairly simple to use. Alas I have never used this language before, and am at a complete loss of how to do anything aside from the basic tutorials.
So what I’m asking is can I get some help. I need someone to show me how to do this so that I can be finished with this dastardly project, but also so that I can start to learn VB. I don’t want strait code and im pretty sure no one would do that anyway. I’m not expecting any responses, but hey, worth a shot!
The program sounds simple enough; basically roughly 60 images are stored in a folder. The program randomly calls 20 or so images and displays then on the screen for 10 minutes. After the ten minutes, the images disappear. Simple enough. I started this in Game Maker 6, something that should have worked. Some how or another I failed, it does not work and I am beating my head into the floor. Then one friend suggested using VB, as it is fairly simple to use. Alas I have never used this language before, and am at a complete loss of how to do anything aside from the basic tutorials.
So what I’m asking is can I get some help. I need someone to show me how to do this so that I can be finished with this dastardly project, but also so that I can start to learn VB. I don’t want strait code and im pretty sure no one would do that anyway. I’m not expecting any responses, but hey, worth a shot!
#2
Re: randomized flash card generator
Posted 10 November 2008 - 12:58 AM
Ok Ill try and explain what you need...
You need a button, 20 Images you can use either Image or PictureBox name them card1 - 20 the button generate and the form main also make a timer and name is well keep it the way is it. (If you want put a text box where the time is.)
Ill try and make a example for you at the moment I am
Ändrew
You need a button, 20 Images you can use either Image or PictureBox name them card1 - 20 the button generate and the form main also make a timer and name is well keep it the way is it. (If you want put a text box where the time is.)
Ill try and make a example for you at the moment I am
Ändrew
#3
Re: randomized flash card generator
Posted 10 November 2008 - 01:45 AM
better you create a path array of 50 and picturebox array of 20
make a for loop using the filelist direcoty and save the paths in the patharray
now store the picture for a particular index in the picture box control
for that you must generate a random number in the index part
for random number generation check the cdesnippets in vb
make a for loop using the filelist direcoty and save the paths in the patharray
now store the picture for a particular index in the picture box control
for that you must generate a random number in the index part
for random number generation check the cdesnippets in vb
#5
Re: randomized flash card generator
Posted 15 November 2008 - 06:22 PM
if you wanna create a random number generator. you'll need 2 labels & 2 command buttons. & 1 text box. name one label - lbla & name the other lblb . name one command button- cmdgenerate (will generate questions)& name the other cmdcheck(will check the answers). & name the text box - txta
type this code in the cmdgenerate
type this code in cmdcheck
hopefully this will help you !!
type this code in the cmdgenerate
Private Sub cmdgen1_Click() Dim i, r, z As Integer For i = 1 To 5 r = Int(8 * Rnd() + 1) z = Int(4 * Rnd() + 1) Next i lbla.Caption = r lblc.Caption = z
type this code in cmdcheck
Dim a, b, c As Integer
a = Val(lbla.Caption)
b = Val(lblc.Caption)
c = a * b
If txta.Text = c Then
MsgBox ("Well Done")
Else
MsgBox ("Try Again")
End If
hopefully this will help you !!
This post has been edited by MsRazia: 15 November 2008 - 06:24 PM
Page 1 of 1


Ask A New Question
Reply





MultiQuote






|