Ok
I have a main form and 2 subforms
The 2 subforms both have two command buttons "save" & "Quit"
Under Save_Click and Quit_Click the unload commands
Unload LedColors Unload Speedsetup
Unload PPortLc1 (main form) Unload PPortLc1 (main form)
It works the first time. then the second time I get the following errors:-
Runtime error 402
Must Close or hide topmost model form first.
It dosent mater which order I put the Unloads in, I get the same error.
Also on the main form, i had to do the same unload the form, because every time you did something on the main form, it would open another copy of the form.
The old form does unload 3 or 4 times then after that it dosen't unload and I end up having loads of forms visable on the screen
I have a main form and 2 subforms
The 2 subforms both have two command buttons "save" & "Quit"
Under Save_Click and Quit_Click the unload commands
Unload LedColors Unload Speedsetup
Unload PPortLc1 (main form) Unload PPortLc1 (main form)
It works the first time. then the second time I get the following errors:-
Runtime error 402
Must Close or hide topmost model form first.
It dosent mater which order I put the Unloads in, I get the same error.
Also on the main form, i had to do the same unload the form, because every time you did something on the main form, it would open another copy of the form.
The old form does unload 3 or 4 times then after that it dosen't unload and I end up having loads of forms visable on the screen