General information
Category:
The Mere Mortals .NET Framework
Title:
DatePicker in MM different than .NET
There seems to be a difference between the normal .NET date picker and the MM Date Picker
I can use the following to format a return string:
Private Sub DateTimePicker_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
editReqdate.Text = DateTimePicker.Value.ToString("d")
End Sub
Private Sub MmDateTimePicker1_ValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles MmDateTimePicker1.ValueChanged
editReqdate.Text = MmDateTimePicker1.Value.ToString("d")
End Sub
The second version with the MM control gives me an error:
"'Public Overridable Function ToString() As String' has no parameters and its return type cannot be indexed"
Do I need to use the MM Date picker in my MM form, or can I just use the standard control?
Or is there another way to set the syntax for the MM Date Picker?
Thanks.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only