把窗体4的TextBox控件设置为Public
然后BUTTON在点击的时候
Form4 f4= new Form4();
f4.TextBox1.Text = 你要的值;
f4.Show();
然后BUTTON在点击的时候
Form4 f4= new Form4();
f4.TextBox1.Text = 你要的值;
f4.Show();
解决方案 »
- 操作浏览器的问题
- 点超链接实现下载功能,请教解决方案!!!!!!
- int型数据问题
- datagridview怎样实现选定一行时某一列自动处于编辑状态(就是有光标闪),如果有数据则数据处于选中状态.
- 如何从DataTable中取出不同的数据,类似sql的Distinct关键字
- 一个关于窗体的问题
- ====高手帮忙,SESSION与FORMS的问题====
- datagrid在winform中的一个小问题??
- 新手求教:为什么我的循环有问题?
- 我自己定义的DataGrid,从WebControls.DataGrid继承,为什么不能在属性窗口设置Columns属性?
- 怎样调用其他窗体的控件
- 关于报表棘手的问题
private void btnTransfer_Click(object sender, EventArgs e)
{
Form2 f = new Form2(listView1.SelectedItems[0].Text);
f.Show();
}
string strReceive = string.Empty;
public Form2(string strContent)
{
InitializeComponent();
strReceive = strContent; lblContent.Text = strReceive;
}