如何将值从文本框传递到不同形式的标签? [英] how to pass value from textbox to label on different form?

查看:22
本文介绍了如何将值从文本框传递到不同形式的标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Visual Studio 2008,c# winform...我想将主表单上的标签文本更改为在第二个表单的文本框中输入的文本并存储它意味着当我重新执行我的应用程序时它显示更新的名称实际上我正在尝试为我的游戏制作最佳评分系统...谁能指导我...谢谢.

i am using visual studio 2008,c# winform. . .i want to change label's text on main form to the text entered on 2nd form's textbox and store it means when i re-execute my application it shows updated name actually i am trying to make best score system for my game. . . can anyone plz guide me.. . Thank you.

推荐答案

windows 应用中有很多方法可以在表单之间传递数据..

There are so many methods to pass data between forms in windows application..

Using constructor
Using objects
Using properties
Using delegates

在此处查看 PassingData这个

这篇关于如何将值从文本框传递到不同形式的标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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