I need to call an external application through my current application, in which this external application is being opened outside of my application and I would like it to be opened as a child form of my parent form. This is my current code that is opening this application regardless of the application:
private void buttonBoletos_Click(object sender, EventArgs e)
{
try
{
string diretorio = Directory.GetCurrentDirectory();
string caminho = Path.Combine(diretorio, "Boleto.exe");
Process process = Process.Start(caminho , "GBSODETO");
}
catch (Exception ex)
{
MessageBox.Show("Aplicativo não encontrado: \"" + ex.Message + "\"", "Atenção!", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}