更新时间:2023-01-07 18:34:57
hi,
创建该表单的对象,objname.show()或objname.ShowDialog()将重定向到另一个表单...
或者
frmTest2 ObjViewer = new frmTest2();
this.Hide();
ObjViewer.ShowDialog ();
1。 从一种表单重定向到另一种表单 [ ^ ]。br />Quote:关闭当前表单 - this.Close(),
创建对象另一种形式并调用formObject.Show()方法。
2. 从一个窗口窗体重定向到另一个窗口窗体 [ ^ ]。Quote:
HomeForm objHomeForm = new HomeForm();
objHomeForm.Show();
In web it is easy to use linkButton/PostbackURL/Responce.Redirect
But I do not got any one to open another Windows Form.
Please hints.
hi,
Create an object of that form and objname.show() or objname.ShowDialog() will redirect to another form...
OR
frmTest2 ObjViewer = new frmTest2();
this.Hide();
ObjViewer.ShowDialog();
1. Redirect from one form to another form[^].Quote:Close the current form - this.Close(),
Create object for another form and call formObject.Show() method.
2. Redirect from one window forms to another window form[^].Quote:HomeForm objHomeForm = new HomeForm(); objHomeForm.Show();