I need my child forms to be in front of the parent form, up to there blz. Only they stay on top of any other window or program. I would like to know if the child forms are just in front of the parent form and when other windows or programs are opened they do not get ahead.
Code that opens the child form
FormCadastroCliente formCli;
private void BtnCliente_Click(object sender, EventArgs e)
{
bool _found = false;
foreach (Form _openForm in Application.OpenForms)
{
if (_openForm is FormCadastroCliente)
{
_openForm.Focus();
_found = true;
}
}
if (!_found)
{
formCli = new FormCadastroCliente();
formCli.Show();
formCli.BringToFront();
formCli.TopMost = true;
}
}