显示错误无法将“system.windows.forms.combobox”类型的对象转换为在我的代码中键入“system.windows.form.DateTimePicker”...
Private Sub UncheckMyControlsdtp()
Dim dtp As DateTimePicker
Try
For Each dtp In EMPGBDATA.Controls
If dtp.CalendarMonthBackground = Color.Red Then
dtp.CalendarMonthBackground = Color.White
End If
Next
Catch e As Exception
MsgBox(e.Message)
End Try
End Sub
朋友检查我的代码并给出解决方案...