我寫的所有空文本框在我的表格的函數:無法投型「System.Windows.Forms.Button」的對象鍵入>「System.Windows.Forms.TextBox」
Private Sub effacer()
For Each t As TextBox In Me.Controls
t.Text = Nothing
Next
End Sub
但我有這個問題:
無法轉換類型「System.Windows.Forms.Button」的對象鍵入 「System.Windows.Forms.TextBox」。
我嘗試添加該If TypeOf t Is TextBox Then
但我有同樣的問題