user2332718
user2332718

Reputation: 19

VB6 - break program until a button is clicked

I'm using VB6 and I'm trying to do the following:

I have a command button that execute a while statement. in this statement I'm loading a new form with:

Load FrmPayment
FrmPayment.Show

I want the program to brake until I click a button in the new form, and then start from the same point I left

I tried looking the web for an answer but couldn't find anything that helped.

How can I do this?

Upvotes: 0

Views: 215

Answers (1)

jac
jac

Reputation: 9726

By showing your new form modally the new form is the only form in your application that responds to the user.

Load FrmPayment
FrmPayment.Show vbModal

Upvotes: 7

Related Questions