0
以下代碼很好用;For Each Loop SelectionStart Doesnt Work
For Each c As Control In TabPage1.Controls
If Not TypeOf c Is Label Then
c.Enabled = False
End If
Next
以下代碼很好用;
TextBox1.SelectionStart = 0
以下代碼不工作;
For Each c As Control In TabPage1.Controls
If TypeOf c Is TextBox Then
c.SelectionStart = 0
End If
Next
這是錯誤信息;
'SelectionStart' 不是 'System.Windows.Forms.Control的'
非常感謝。 – Kramer