Form child gets in front of everything including other windows Windows Forms C #

1

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;
        }
    }
    
asked by anonymous 30.06.2018 / 03:32

0 answers