0

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim j As Boolean
j = True
Me.Hide()
System.Diagnostics.Process.Start("LSBSTEG.exe")
While (j = True)
If Diagnostics.Process.GetProcessesByName("LSBSTEG").Length <= 0 Then
Dim f As New Form4()
f.ShowDialog()
j = False
End If
End While
End Sub

2
Contributors
6
Replies
7
Views
8 Years
Discussion Span
Last Post by joseph19.k
0

The entire system will get hanged up if i run the above code.................i'm thinking coz of the iteration in the while loop,................Is it true??

0

In d above code.................I've triggered LSBSTEG.exe process & trying to see when it gets terminated............so that i want to load Form4()....................

0

i guess it's the variable j which the "While" code cannot find because the form is already in a hide mode.

so why not try to put that variable globally?

0

k k,..........I'll try to keep that variable globally........Thankz

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.