这个dgv1所在的窗体是form2
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Form2.MdiParent = Me
Form2.Dock = DockStyle.Fill
Form2.Show()
Form3.MdiParent = Me
Form3.Show()
End Sub
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim s1 As String
dgv1.Rows.Add(Form1.dgv1.RowCount - 6)
For i As Integer = 0 To Form1.dgv1.Rows.Count - 7
s1 = CStr(Form1.dgv1(0, i).Value)
dgv1(0, i).Value = s1
Next
dgv1.FirstDisplayedScrollingRowIndex = dgv1.RowCount - 1'''''''''这里就出问题了
End Sub
[
本帖最后由 mp654k 于 2011-7-14 14:09 编辑 ]