Win Form中怎么样实现编辑文本并将其显示在窗口中 大致是一个Form1窗口实现编辑文本,然后将编辑好的文本显示在Form2中 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Form1中的代码Form2 f2 = New Form2();f2.Text = Textbox1.Text.Trim(); Form2窗体名称显示为Form1窗体中的Textbox1输入的值 用1L的方法就可以了。具体实习代码如下private void button1_Click(object sender, EventArgs e) { Form10 form = new Form10(); form.testValue = this.textBox1.Text; form.ShowDialog(); }窗体1中的代码。窗体1中就放了个文本框和一个按钮public Form10() { InitializeComponent(); } public string testValue { get; set; } private void button1_Click(object sender, EventArgs e) { this.Close(); } private void Form10_Load(object sender, EventArgs e) { this.textBox1.Text = testValue; } var graphics = form2.CreateGraphics();graphics.DrawString(编辑后的谁的,字体.... ); 请问谁有零售收银系统的开发经验? 请教专家关于异步SCOKET问题 请教C#.net GridVie分页后FindControl无法取到其他页面的值?谢谢 监视器下面的比如说Table.Columns的base与非公共成员有什么区别? C#读二进制文件的问题,急,求助! vs2003中窗口关闭问题 急问,笔记本怎么和台式机交换数据? 怎样取到一个aspx页面的所有的类型为button的id WinForm开发问题!! 终于都跳到做C#的工作了,散分! 更改状态 C#服务(或子线程)调用API无法连接数据库(用WinForm却可以)
Form2 f2 = New Form2();
f2.Text = Textbox1.Text.Trim(); Form2窗体名称显示为Form1窗体中的Textbox1输入的值
private void button1_Click(object sender, EventArgs e)
{
Form10 form = new Form10();
form.testValue = this.textBox1.Text;
form.ShowDialog();
}
窗体1中的代码。窗体1中就放了个文本框和一个按钮public Form10()
{
InitializeComponent();
} public string testValue { get; set; } private void button1_Click(object sender, EventArgs e)
{
this.Close();
} private void Form10_Load(object sender, EventArgs e)
{
this.textBox1.Text = testValue;
}
graphics.DrawString(编辑后的谁的,字体.... );