Volevo chiedere e giusto se faccio cosi?


Prova1.exe
Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click

Process.Start("C:\Prova1.exe", "Ok")

End Sub


Prova2.exe
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

If Environment.GetCommandLineArgs(1) = "Ok" Then
Me.Close()
End If

End Sub