i'm popping up a form from a function and i want the code to stop executing further till a button on the form is clicked. Right now the form is popping up and the appln continues executing the code after that. Please help me
3
Contributors
4
Replies
4 Hours
Discussion Span
5 Years Ago
Last Updated
5
Views
Question Answered
Related Article:About Mscomm Control
is a Visual Basic 4 / 5 / 6 discussion thread by jatinder_44 that has 4 replies and was last updated 5 years ago.
For i=0 to 10
.....
Form1.Show
Call function1(var_Name, intValue)
....
.....
...
Next i
This loop is present inside a class and has many function calls inside the 'for' loop. form1 is called inside this loop. I want the control back into this 'for' loop and continue with executing the further code on click of a button on the form1.
For i=0 to 10
.....
Form1.Show
Call function1(var_Name, intValue)
....
.....
...
Next i
This loop is present inside a class and has many function calls inside the 'for' loop. form1 is called inside this loop. I want the control back into this 'for' loop and continue with executing the further code on click of a button on the form1.
I think you mean
The execution of Call function1(var_Name, intValue) should be after closing or hiding Form1
If so, you can show the form Modally
that is Form1.Show vbModal The execution wait for Form1 to close or hide
In the form1's button,
You should hide or close the form