visual studio2008 创建的window窗体应用程序怎么调出另一个已经建立的窗体?

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
用什么指令? }
窗口里有一个button控件,我想点击它就调出另一个已经建立好的窗口,该用什么指令,在这个click事件里添加什么代码?

你的是VC++的代码吧?
C#里面是
MyForm myform=new MyForm();
myform.Show();
MyForm就是你那个窗体的名称
温馨提示:内容为网友见解,仅供参考
第1个回答  2012-04-17
例如在textBox1中显示:this->textBox1->text += "要显示的内容"
第2个回答  2010-07-21
private void LoadAnotherForm_Click(object sender, EventArgs e)
{
//Form2是你想调用的窗体名称
Form2 form2 = new Form2();
form2.Show();
}
第3个回答  2010-07-21
(from1为窗体名称)
from1.onfocus=true;
第4个回答  2010-07-21
Response.Redirect("窗体.cs") ;
第5个回答  2010-07-22
可以用API
先把你建好的窗体的句柄拿到
再通过句柄调出
相似回答
大家正在搜