1
我想創建一個datagridview
每一天。這是我的代碼到目前爲止。它不顯示任何錯誤,但是當我運行代碼時,它只是加載表單,但沒有出現dgv
。我能做什麼?循環槽日期vb.net
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Dim start As Date = Date.Now
Dim apocap As Date = Date.Parse(#8/22/2050#)
Dim loopdate As Date = start
While start < apocap
Dim dgv As New DataGridView
With dgv
.Size = New Size(250, 250)
.ColumnCount = 2
.RowCount = 12
.Location = New Point(12, 9)
.Visible = True
End With
start = start.Date.AddDays(1)
End While
End Sub
End Class