怎么就能把“Form_学习查询”这个窗体压在“班级公告”这些在父窗体中的控件上了?
调用:
上两位说的 TopMost 是错误的,题主自己试验即可。
[DllImport("user32")]public static extern int SetParent(int hWndChild, int hWndNewParent); 这个是写在哪啊?麻烦给解释一下吧……谢了……
API 函数声明,任意一个过程外部即可,如下图: