|
-
December 19th, 2008, 02:06 AM
#1
Stop process
Hi Expertz,
I have a problem that I show a dialog in a form like in a loop like
Code:
for i=0 to itotal then
if (codition) then
Dim DlgPas As New DialogPass()
DlgPas.Show()
end if
....
...........
...........
next
i want to stop a process when if condition is true..for example if i=2 and if condition is true then until the user not click OK button on DlgPas Form programe should not go next line ...
Thanx
frm adnanio Brzzzz
Last edited by HanneSThEGreaT; December 20th, 2008 at 01:45 AM.
Reason: Code Tags!
-
December 19th, 2008, 02:15 AM
#2
Re: Stop process
Maybe you need EXIT IF or EXIT FOR which immediately jumps to the respective endpoint
Code:
' and also, USE CODE TAGS!!!!
-
December 24th, 2008, 08:41 AM
#3
Re: Stop process
No I would not like to exit for or sub...i wish to wait until user click on child form button..
bcoz I need loop index also after geting some data from child form
thanx
waiting ur reply
Last edited by kku; December 24th, 2008 at 08:43 AM.
-
December 24th, 2008, 08:46 AM
#4
Re: Stop process
Then DlgPas should be modal. This way the flow in the parent window will not continue until the dialog closes.
-
December 29th, 2008, 07:59 AM
#5
Re: Stop process
 Originally Posted by marceln
Then DlgPas should be modal. This way the flow in the parent window will not continue until the dialog closes.
It means, write
Code:
DlgPas.ShowDialog()
[Vb.NET 2008 (ex Express)]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|