DataGridView1窗体名为FRM1,TextBox1窗体名为FRM2
FRM1上赋值
Dim
FRM2 As New FRM2
FRM2.reFRM1 = Me
FRM2传数据
reFRM1.DataGridView1.Rows.Add()
reFRM1.DataGridView1.Rows(0).Cells(0) = TextBox1.Text
控件跟着窗口大小变化
Private Sub Frm_play_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.SizeChanged
datagrid.Width = Me.Width - 15 '根据自己变化大小自己来调
datagrid.Height= Me.Height - 15 '根据自己变化大小自己来调
End Sub
[[it] 本帖最后由 qlong0728 于 2008-10-31 10:10 编辑 [/it]]