Another stupid question

pruebens

Well-known member
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 arent closing, they remain open behind another activated form.......is there a better way to close forms when you are done with them? TIA.
 
The .Close method of forms should work just fine. I have had no problems with it.
 
Thats what I thought as well, but here essentially is what I do

run some IFs
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 Im 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 youll have to close it just before you call ShowDialog on the other form.

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