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

so what's the problem??

so what's your problem?

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??

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

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?

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.