Visual basic coding help

Caporegime
Joined
18 Sep 2009
Posts
30,499
Location
Dormanstown.
Hey.
I'm currently doing a HCI assignment which has us using VB, the teacher doesn't mind if the code's not original, he only cares about the presentation.
But given his bland explanation of presentation, it's very varied.
Anyways.

The program that we're to create is a reactions test.

Currently, my programs consists of these forms ;

My splash page
1290597292.png


My main page

1290597394.png


My options page

1290597435.png


My help page

1290597527.png


The reactions test page (You'll realise while it's blank)

1290597582.png


My results page

1290598107.png



What the program currently does ;

When you start the program, it'll load up frmSplash (As it should), that will take you to frmMain (As it should). The user can then go onto frmOptions and select the background and text colour (Becomes apparent later), they can then go back to frmMain, and then onto frmHelp, and then back to frmMain.

Anyways, then when the game is started on frmReactionsTest, the lblTest will load up the colour that you've chosen in frmOptions.

This is where it gets tricky, and I'm stuck. I must make the letter A appear around different locations of lblTest 20 times at 3 second intervals after the space bar has been pressed. Each time the letter A appears there should be a counter, which is then stopped after the space bar is pressed. And it'll continue on the next letter A appearing.

After 20 times it should average your time it took per click, and those results should be displayed in frmResults.

I have NO idea how to do this, and neither does our coding (Not HCI) teacher, hell, selecting the colours our coding teacher used ridiculously complicated coding with highlighting etc, when mine does the same thing with about 10 times less coding.

So, any coding guru's can help :p?

I'll send you my .rar which has my Visualbasic project, along with all my images.
 
could help, but dont know when I will be able to look at it, if you send it to my email in trust I will load it up :)

Stelly

I've E-mailed you cheers.


Make the label small, position it with .top and .left, use rnd() multiplied by the form width / height, you'll get the idea.

timer control

declare variables at the top of the form or in a module, this will persist and let you tot up the totals for all clicks.

If you're having problems registering the keypress look at the keypreview property of the form.

I'll do that now.
Forgot to say it's VB 6.0, whatever implication that has on the syntax.
 
Back
Top Bottom