We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,672 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Control Back from a form

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
dinilkarun
Posting Whiz in Training
206 posts since Feb 2008
Reputation Points: 18
Solved Threads: 0
Skill Endorsements: 0

post your code...
will help much to understand

Jx_Man
Senior Poster
3,521 posts since Nov 2007
Reputation Points: 1,468
Solved Threads: 514
Skill Endorsements: 64

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.

dinilkarun
Posting Whiz in Training
206 posts since Feb 2008
Reputation Points: 18
Solved Threads: 0
Skill Endorsements: 0

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

Try This!

selvaganapathy
Posting Pro
547 posts since Feb 2008
Reputation Points: 44
Solved Threads: 100
Skill Endorsements: 3

Thank you dude.... Its working.....

dinilkarun
Posting Whiz in Training
206 posts since Feb 2008
Reputation Points: 18
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 5 Years Ago by Jx_Man and selvaganapathy

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.5567 seconds using 2.63MB