Private Sub TabControl1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TabControl1.SelectedIndexChanged If (TabControl1.SelectedIndex = 1) Then Dim PR As Process = Process.Start("d:\\selvi\\wordweb6\\wweb32.exe") PR.WaitForInputIdle() 'PR.Refresh() 'PR.WaitForExit() SetParent(PR.MainWindowHandle, TabControl1.TabPages(1).Handle) SetForegroundWindow(PR.MainWindowHandle) SendMessage(PR.MainWindowHandle, WM_SYSCOMMAND, SC_MAXIMIZE, 0) End If End Sub
Process has exited, so the requested information is not available.
Process PR
PR
Process.Start
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)