VB Coding and getting Output

I found this coding on some other forums.
VB.NET:
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
  '
  Dim MyProcess As New Process
  Dim RetVal As Boolean
  Dim FileName As String
 
  ' This my path to VB6, change it to match yours
  FileName = "D:\Program Files\Microsoft Visual Studio\VB98\VB6.exe"
  ' Set process properties
  MyProcess.StartInfo.UseShellExecute = True
  MyProcess.StartInfo.FileName = FileName
  MyProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal
  ' Start the application and check if it started
  RetVal = MyProcess.Start()
  If Not RetVal Then
    MessageBox.Show("Unable to start application", _
      "Error", _
      MessageBoxButtons.OK, _
      MessageBoxIcon.Information)
  End If
 
End Sub

But here i need some change,
It is running in separate window.
Is it possible to run that project in the new form of myproject, with form splitted into two,
Leftside - coding
Rightside - Output
 
Back
Top