郁闷中,今天老遇见奇奇怪怪的问题,
下面这段代码是我程序中的,因它没有达到预期的结果,我在这里设一断点,查看“mycontrol”,
你猜怎么着,提示说“mycontrol”值为2002,真不知道哪里出了问题?
Dim mycontrol As Control
For Each mycontrol In FrmStSalaryinput.Controls
Select Case TypeName(mycontrol)
Case "textbox"
' txtYear.Enabled = True
' txtMonth.Enabled = True
mycontrol.Text = ""
Case Else
End Select
Next