Another stupid question

pruebens

Regular
Joined
Nov 21, 2002
Messages
71
Sorry for the n00bness but when I try to close a form using the me.close statement, my forms aren't closing, they remain open behind another activated form.......is there a better way to close forms when you are done with them? TIA.
 
That's what I thought as well, but here essentially is what I do

run some IF's
open a new form
me.close


BUt if I move the active form to the side the form that I TRIED to close is still open......

I know I'm doing something wrong.
 
If you are showing your new form using the .Show method that should work fine.

The only way I can see that not working is if you used the .ShowDialog method instead.
 
I am using the showdialog.........so I guess I should use show? My question is then will using show effect an input form?
 
The .ShowDialog method is intended to show a dialog modally, i.e. it will wait for validation in that dialog before closing it and returning execution to the calling procedure. Therefore, if you want your calling form to close you'll have to close it just before you call ShowDialog on the other form.

That is, if you *must* use ShowDialog.
 
Back
Top