Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27349

Pause main form till a secondary is closed

$
0
0
Hi all,
I want to open a secondary form from my main form, using

Dim form As New Form2
form.Show()

and after the secondary form is closed to run a subroutine on the main form. For some reason this code
Dim form As New Form2
form.Show()
loadCombo()

doesnt wait till the second form is closed but keeps running even when the other form is visible.

i would prefare not calling the loadCombo() sub from the other form, but if there is not an other way out of it, i guess i will have to

Thanks in advance
ilias

Viewing all articles
Browse latest Browse all 27349

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>