C# code
int index = 0;
for (int i = 0; i < this.Controls.Count; i++)
{
if (this.Controls[i] is Form)
{
index++;
if (index == 2)
return this.Cont……
[/Quote]我获取的是别人的一个程序窗口下的里面的子窗口,你这个恐怕不行啊..
int index = 0;
for (int i = 0; i < this.Controls.Count; i++)
{
if (this.Controls[i] is Form)
{
index++;
if (index == 2)
return this.Controls[i].Handle;
}
}