PDA

View Full Version : [SOLVED:] Code execution stops when new form is displayed



mrojas
09-10-2013, 04:12 PM
I have an user input form (let's call it the main form) with many controls and all is working fine, except when I try to display a second form (let's call it sub-form) to inform the user that something is working in the background (the code in main form is executing). As soon as I show this sub-form the execution of the code in the main form comes to a complete halt.
Any ideas how to keep the sub-form display while the main form's code runs?:think:

fumei
09-10-2013, 05:18 PM
No, that is the way it works. If it is a true sub-form (i.e a different one) then when it is displayed, IT gets the focus and the previous one stops. That is the way it works.

One possible option is to change the dimensions of the userform to add a displaying part. Or simply use a Label that displays the text you want. Bottom line though, if you display a different userform, that one has focus and the previous one stops.

mrojas
09-10-2013, 05:28 PM
Thanks. I've been using a label to keep the user informed, but thought it would be fancier if I displayed a separate form.