Controls in container form come over child form?

后端 未结 8 2191
天涯浪人
天涯浪人 2020-12-01 20:40

In a container form I have menu and buttons to open ther forms. \"enter

Here I am fac

8条回答
  •  不思量自难忘°
    2020-12-01 20:50

    I've also got the same problem. I got an alternative solution as described below:

    1. Insert a timer control
    2. I've added the controls in a panel container
    3. And did the following

      private void timer1_Tick(object sender, EventArgs e)
      {
          if ((int)MdiChildren.GetLength(0) > 0)
          {
              panel1.Visible = false;
          }
          else
          {
              panel1.Visible = true;
          }
      }
      

提交回复
热议问题