打开了A窗口,A窗口里通过代码打开B窗口,A和B都是相互独立的窗口,默认是B窗口打开后覆盖在A窗口上方。现在我需要B窗口打开后显示在A窗口后面?
解决方案 »
- C# 线程中访问statusStrip控件的问题。
- 如何用C#获得内嵌的二进制资源?
- 关于List<T>的一些问题(按最优ANSWER给分)
- treeview 的奇怪现象
- 请教这个错误是什么原因,如何解决。"length cannot be less than zero. Parameter"
- 开发键盘记时器 ,需要高人帮忙.
- 急,新建立web项目的时候,出现“vc软件包不存在,或者未注册” 小妹急等!
- 如何做软件封包
- c#中关于datagrid_pageindexchanged事件与datagrid_itemcommand事件的问题
- 服务器资源管理器 VS2005 找不到?
- C#中能直接访问图像在内存中的首地址吗?
- 判断生僻字
//在a页给某input设个焦点或刷新应该还是在前面,或者在b页刷新a页或给a页某input设焦点
a页:
window.open('b...);
//document.getElementById('aaaaa').focus();
//window.location.href=window.location.href;
b:
//window.opener.document.getElementById('aaaaa').focus();
//window.opener.location.href=window.opener.location.href;
Form2 f2 = new Form2();
f2.Show();
this.Activate();
也可以调整Z顺序:
Form2 f2 = new Form2();
f2.Show();
f2.BringToFront();
this.BringToFront();
f2.show();
f2.sendToBack();
焦點仍在f2上
B.Show();
B.SendToBack();
A.BringToFront();
A.TopMost = true;
A.Focus();