菜鸟问题:怎么打开下一个窗口(WINDOWS里的)

yang528119 2004-06-09 09:27:00
怎么打开下一个窗口(WINDOWS里的)
...全文
120 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
kanchi81 2004-06-09
  • 打赏
  • 举报
回复
下一个窗口是指什么?直接在button里添加javascript的window.open也不行?
dqsoft 2004-06-09
  • 打赏
  • 举报
回复
Form form2 = new Form();
form2.Show();
yang528119 2004-06-09
  • 打赏
  • 举报
回复
他说缺一个USING的
yang528119 2004-06-09
  • 打赏
  • 举报
回复
不得行呀,我想在FORM1中打开FORM2
cxyzh 2004-06-09
  • 打赏
  • 举报
回复
<input type="button" id="d" value="打开" onclick="ss=window.open('http://www.sohu.com','ss','height=300,width=300');">
<input type="button" id="c" value="关闭" onclick="ss.close()">

刚才的有点小错,这是改过的
vm58 2004-06-09
  • 打赏
  • 举报
回复
mywindow testDialog = new mywindow();
testDialog.ShowDialog(this);
testDialog.Dispose();

cxyzh 2004-06-09
  • 打赏
  • 举报
回复
<input type="button" id="d" value="打开" onclick="ss=window.open('http://www.sohu.com','qiao','height=300,width=300');">
<input type="button" id="c" value="关闭" onclick="ss.close()">


把上面的代码保存为.htm文件,看效果吧!打开关闭全都有了

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧