Hi guys, I am using an UltraDateTimeEditor on my form but for some strange reason when using the up/down year spinner on the calendar the text goes invisible! What can possible be the problem? Please see the Picture attached!
Pretty much exactly how it was shown above.
Private Sub UltraDateTimeEditor1_ValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles UltraDateTimeEditor1.ValueChanged
If Not UltraDateTimeEditor1.Value Is Nothing Then
UltraDateTimeEditor1.DateTime = CType(UltraDateTimeEditor1.Value, DateTime)
End If
End Sub
Hi
Can u send me ur code or ur application sample using that code?
Asad
Thanks, I was close just didnt realize I could cast as datetime. Didnt seem to fix the invisible dates though.
The VB equivalent would look something like this:
Private Sub UltraDateTimeEditor1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles dtpDateOfBirth.ValueChanged If Not dtpDateOfBirth.Value Is Nothing Then dtpDateOfBirth.DateTime = CType(dtpDateOfBirth.Value, DateTime) End If End Sub
I know this is an old thread but hopefully I can still get some help. What would be the equivalent in VB.net, I cant seem to get anything to work that is along the same line as the mentioned code above. I am new to VB.net so any help would be appreciated.