[求助]VB.NET 2005 关于窗口相互调用控件数据问题
有两个窗口,分别是FORM1,FORM2.FORM1有一个按钮直接打开FORM2
Dim FORM2 As New FORM2
FORM2.ShowDialog()
form2有一个按钮BUTTON1,我想按BUTTON1后
form1的DataGridView1控件就增加一行.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form1.DataGridView1.Rows.Add()
End Sub
这条语句不行,没反应.
请问怎样才能解决呢?谢谢