简体   繁体   English

从onother子窗体通过按钮单击事件Windows应用程序c#打开新的子窗体

[英]Open new child form from onother child Form By Button Click Event Windows application c#

先生,我在Windows应用程序C#.net中有一个MDI窗体和两个子窗体Form1和Form2,并且我想转到Form2。在MDI Conainer Plese中,必须单击Form1和Form2的Button单击事件。解决方案...。在此先感谢

Get Form1 to tell its parent to create or go to Form2. 获取Form1告诉其父级创建或转到Form2。 If it needs information from Form1 you'll need to send that along with the request or keep the information globally (eg static field). 如果它需要来自Form1的信息,则需要将其与请求一起发送,或将信息全局保存(例如,静态字段)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 C#Windows窗体应用程序,从子窗体关闭父窗体 - C# windows form application, closing parent form from child 关闭子窗体,然后单击C#.net中的用户控件中的按钮,打开另一个窗体? - Close a child form and open another form on click of a button from user control in C#.net? 按钮单击导致子表单不被处理C# - Button Click causing child form to not be disposed C# 如何检查按钮是否在C#中的Windows窗体应用程序中的另一个按钮单击事件内被单击 - how to check whether a button is clicked, inside another button click event in windows form application in C# C#Windows Form应用程序中每次单击时按钮文本的更改 - Button Text Change on Every Click in C# Windows Form Application 单击Windows窗体应用程序C#按钮,关闭特定的窗体 - Windows Forms Application C# button on click close specific form C#代码,每次单击按钮即可创建一个新的Windows窗体 - c# code to create a new windows form every click of button C#-从另一个MDI子窗体的按钮打开MDI子窗体 - C# - Opening mdi child form from another mdi child form's button c#从Child更改父窗体的按钮值 - c# change button value of parent form from Child mdi形式->>子形式1(button->>子形式2)c#来自其他某个子形式的按钮的子形式 - mdi form-->> child form 1(button-->> child form2) c # child form from button of some other child form
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM