就两个么?那么用笨办法 ActiveMdichild指向当前子窗口,那么另外一个必然是你要显示的

解决方案 »

  1.   

    用窗体类型判断吧,如果窗体类型有一样的,你就加一个属性来判断。激活MDI子窗口的办法是:BringToFront
      

  2.   

    BRINGTOFRONT果然行了。但是小弟还是不明白为什么各个MDICHILD的索引会不断的改变呢?看书说的是最迟建立的MDICHILD索引应该是0的呀??请各位大侠指点迷津!谢谢
      

  3.   

    看一看下面这段帮助你就会明白啦!property MDIChildren[I: Integer]: TForm;DescriptionUse MDIChildren to access a child form. I is the index of the child form to access. The order of MDI children changes as different MDI forms are activated. Initially, forms are listed in creation order, with new forms being added to the end of the array. Whenever an MDI child is activated, however, it moves to the front of the list. Thus, use I to index over all forms in the array, but not to refer to a specific form.
      

  4.   

    thanks for prometheusphinx's opinion!!!!
    I got it!!