What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » VB game

VB game
Author: Message:
Th3rmal
Veteran Member
*****

Peek-a-boo! I see you!!

Posts: 1226
Reputation: 26
32 / Male / Flag
Joined: Aug 2005
O.P. VB game
im making a game for preschoolers (a simple adding game) and what i wanna do is at the end make an accuracy score (eg. your accuracy for the right answer was 80%). what ive got is 8 forms, one for each question (please dont say "why didnt you use the one form" the answer is i tried that, i coulnt get it to work properly so my teacher told me to do it on different forms) anyway, is there a way to add up the numbers in a label in each form ( eg. form 1 label = 2, form 2 label = 1, therefore Form1 label plus form 2 label = 3)

the only reason i am stuck is that i cant seem to use other forms information when a different form is loaded up, i want to know if you can somehow in the background add these numbers together, or even better when you go to the next form it adds the number from the last form into the new form..

i hope u guys get what i mean and can help me

thx in advance
You have the intellect comparable to that of a rock. Be proud.
08-29-2007 09:06 AM
Profile E-Mail PM Web Find Quote Report
Jarrod
Veteran Member
*****

Avatar
woot simpson

Posts: 1304
Reputation: 20
– / Male / Flag
Joined: Sep 2006
RE: VB game
not quite
do they need to click a button for it to happen or is it ment to be dynamic?

[Image: 5344.png]
[Image: sig.png]

A.k.a. The Glad Falconer














08-29-2007 10:10 AM
Profile E-Mail PM Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
Status: Online
RE: VB game
Add a module and inside it type:
code:
Public LabelTotal as Integer
Then, when you want to add to it (usually after you change your label's caption), just use:
code:
LabelTotal = LabelTotal + CInt(LabelNameGoesHere.Caption)
When you want to see what in LabelTotal, just use:
code:
lblTotal.Caption = LabelTotal
(where lblTotal is the name of the label where you want do display the result).

Good luck :)

Btw, what was your problem with doing it in one form?
YouTube closed-captions ripper (also allows you to download videos!)
08-29-2007 10:22 AM
Profile E-Mail PM Web Find Quote Report
Th3rmal
Veteran Member
*****

Peek-a-boo! I see you!!

Posts: 1226
Reputation: 26
32 / Male / Flag
Joined: Aug 2005
O.P. RE: VB game
m y problem with doing it in one form was even when i pressed the right answer it would say try again because VB thought i had kinda pressed the button twice.

to xen0h: after pressing each button 1 is added to the total
You have the intellect comparable to that of a rock. Be proud.
08-29-2007 12:50 PM
Profile E-Mail PM Web Find Quote Report
Jarrod
Veteran Member
*****

Avatar
woot simpson

Posts: 1304
Reputation: 20
– / Male / Flag
Joined: Sep 2006
RE: VB game
ah got ya good luck

[Image: 5344.png]
[Image: sig.png]

A.k.a. The Glad Falconer














08-30-2007 05:56 AM
Profile E-Mail PM Find Quote Report
Th3rmal
Veteran Member
*****

Peek-a-boo! I see you!!

Posts: 1226
Reputation: 26
32 / Male / Flag
Joined: Aug 2005
O.P. RE: VB game
lol now that u got wat i mean can u help me any further,?
You have the intellect comparable to that of a rock. Be proud.
08-30-2007 07:20 AM
Profile E-Mail PM Web Find Quote Report
Jarrod
Veteran Member
*****

Avatar
woot simpson

Posts: 1304
Reputation: 20
– / Male / Flag
Joined: Sep 2006
RE: VB game
what part you need help with?

[Image: 5344.png]
[Image: sig.png]

A.k.a. The Glad Falconer














08-30-2007 07:35 AM
Profile E-Mail PM Find Quote Report
rav0
Veteran Member
*****

Avatar
i have an avatar

Posts: 1419
Reputation: 29
35 / Male / Flag
Joined: Aug 2003
RE: VB game
You can access stuff from other forms.

Say you wanted to access the text inside a textbox called Text1 and this textbox is on the form called Form1. You reference it like "Form1.Text1.Text" (whereas if it was not on a different form you could just use "Text1.Text" to get stuff from a different form just use the form name followed by a dot at the beginning of the reference).
| [Image: dorsh] |

(\ /)
(O.o)
(> <)

This is Bunny. Copy Bunny into your signature to help him on his way to world domination
08-30-2007 08:26 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On