English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Okay, my forms aren't running in order I want them to and my project is due tommorow.

I have my beginning form with a button with the code:

frmEquipment.show ()
me.hide ()

Which sounds good to me.

Instead of going to that form it's going to my other form:
frmGame

Anyone know why?

Btw...supposed to go:

frmStart -> frmEquipment -> frmGame -> frmScore

2007-03-21 09:17:12 · 5 answers · asked by Anonymous in Computers & Internet Programming & Design

5 answers

you must also have some code that activates the frmGame from the frmStart. Do a search in the frmStart code module for the string literla "frmgame" to check.

2007-03-21 09:23:22 · answer #1 · answered by Richard H 7 · 0 0

The program works so fast it is hard to see what is going on. What if the program IS opening up that form and we just dont know it? What I am saying is maybe, the form is opening up, and during runtime of the frmEquipment upon opening that form, a trigger event opens up the frmGame. Add a break at the code where it is supposed to open the frmEquipment. Then step through the code.

2007-03-22 03:23:24 · answer #2 · answered by Anonymous · 0 0

You could be having one of a couple of issues.

First, if you still have your frmGame loaded, it may show up on top because of a bad zorder.

The other option is that you have a frmGame.show and me.hide in the form_load function in frmEquipment. Or, a timer that is running on frmEquipment that is causing it to change.

As a side note, try using the unload me command instead of the me.hide. And if this doesnt help you, try zipping up the project and drop it to me in an email, and I can see if I can help you debug it.

2007-03-21 09:22:31 · answer #3 · answered by dmc177 4 · 0 0

nicely, the reason the loop isn't working is that that's an infinite loop. there is not any go out good judgment. What does not make experience is that once you bumped off the loop, the form labored the 1st time yet not the 2nd time. regrettably, this is not the full software so that's confusing to declare what the blunders is with out understand key information like variable scope.

2016-11-27 20:15:18 · answer #4 · answered by ozkardes 4 · 0 0

Did you mix up the names on your forms?

2007-03-21 09:24:56 · answer #5 · answered by lewax00 3 · 0 0

fedest.com, questions and answers