使用C#将信息从一种形式发送到另一种形式 [英] sending information from one form to another form in C#

查看:69
本文介绍了使用C#将信息从一种形式发送到另一种形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好.我在C#中有2个表单,首先要加载我的表单1,并显示您必须在文本框1中输入player1名称,在文本框2中输入player2名称,并且在此表单中我有一个按钮,通过按下该按钮,我们可以转到我想要在form2中看到播放器1和播放器2的名称,然后在form1中我有2label,2文本框和一个按钮,但没有任何东西,但是在form2中,我有很多东西,例如图片框,标签,按钮,并且没有文本框非常感谢您

Hello.I have 2 form in C# that first my form 1 load and show that you must enter player1 name in text box1 and player2 name in text box 2 and I have a button in this form that with press that we go to the form2.I want after awhile in form2 see player1 and player2 name and in form1 I have 2label,2text box,and one button not any thing but in form2 I have many things such as picture box,label,button, and no text box thank you very much

推荐答案

通过查看您的问题的主题行,我提出了以下建议:

在表单之间传递数据 [将数据从一种表单传递到另一种表单 [
By looking at the subject line of your question I suggest these:

Passing Data Between Forms[^]


Pass Data from One Form to Another Form[^]

hope it helps :)


使用委托方法将信息从一种形式发送到另一种形式
use delegate Method to send information from one form to another


这篇关于使用C#将信息从一种形式发送到另一种形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆