Turn your Mobile Apps into m-commerce apps – Learn More!

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!



randomized flash card generator I need help, very baddly! Rate Topic: -----

#1 Copnos  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 09-November 08


Dream Kudos: 0

Share |

randomized flash card generator

Post icon  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!
Was This Post Helpful? 0
  • +
  • -


#2 Ändrew  Icon User is offline

  • D.I.C Regular
  • Icon

Reputation: 16
  • View blog
  • Posts: 279
  • Joined: 21-April 08


Dream Kudos: 100

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
Was This Post Helpful? 0
  • +
  • -

#3 thava  Icon User is online

  • D.I.C Lover
  • Icon

Reputation: 110
  • View blog
  • Posts: 1,274
  • Joined: 17-April 07


Dream Kudos: 150

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
Was This Post Helpful? 0
  • +
  • -

#4 Copnos  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 09-November 08


Dream Kudos: 0

Re: randomized flash card generator

Posted 11 November 2008 - 08:35 PM

Ok, cool thanks. Seriously, I am scared I would not be able to do it. Now I have some hope. Thanks!
Was This Post Helpful? 0
  • +
  • -

#5 MsRazia  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 25-October 08


Dream Kudos: 0

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
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

Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users