Link to home
Start Free TrialLog in
Avatar of thach1ef2
thach1ef2

asked on

VB6 - user input from form1 a 2nd time

I have a project which starts with a form that asks the user for input (a file path) via a common dialog box. The user inputs the information requested then clicks a start button which launches my code which is in a module.

After some processing is done, I have a message box pop up asking the user if they have another file they want to process. If they select Yes then I have another MsgBox pop up that tells them to select the next file path and then press OK when they are ready to continue.

My problem is that I'm not able to figure out how to get it so that the user can interact with form1 while the MsgBox is up.
SOLUTION
Avatar of VBClassicGuy
VBClassicGuy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thach1ef2
thach1ef2

ASKER

VBClassicGuy :

Thank you. I'll have to figure out another way to do it.

shadow77:

I'm not quite sure how to code it so that everything stops and waits for the user to do something with the form before proceeding.
The common dialog should stop everything, just as a MsgBox would do.  They're both modal, so the user can't do anything else until he clicks OK/Cancel/etc.
Not exactly what I meant. But in writing my response to you I think I figured out what I was doing wrong.

I had all my controls about whether to continue or exit in the module so once I went back to the form, it meant that we were done and I needed to unload and close up shop.

I'm going to try putting the controls in the form itself rather than in the module and see if what you are saying will work.
OK.   If you'd like to post some code, we could look at it.
Thanks for your help. When taking my control statements out of the module itself and placing them in the form, I was able to get things to stop and wait for user interaction with the form before proceeding.