【发布时间】:2015-01-21 22:29:43
【问题描述】:
我创建了一个带有文本框控件的 VSTO 工作簿,比如 textbox1。我还创建了一个带有按钮 button1 的表单。如果按下按钮,如何将信息从表单传递到工作表?
public partial class frmInput: Form
{
public frmInput()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
sheet1.textbox1.text="Test"; //Gives me error
}
}
【问题讨论】: