devxlogo

Pausing Code to Call Another Form

Pausing Code to Call Another Form

Question:
I have a form with a block of code that hides the form and then calls another form. This other form accepts input, saves it to a table and then returns to the block of code that called it, which should then show the initial form.

Problem is the code doesn’t wait for the called form to be completed. The code hides the form, calls the new form, and then shows the initial form, which is now on top of the called form.

How do I pause the block of code until I return from the called form?

Answer:
To solve your problem, make the second form modal.

See also  Why ChatGPT Is So Important Today
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist