DateTimePickerAdv: NullButtonDown Event

I am working with the new version of the Tools (version 2.1.0.9) and have not been able to find the NullButtonDown event in VB. There also seems to be no default behavior for the button, specifically when I press the button the drop down calendar closes and the last date entered is in the text field. I have looked through the help files and have not been able to determine if I am missing something so I would appreciate any help with getting the None Button working. Thanks Ben Waters Technology Coordinator City Of Scottsdale - Court

2 Replies

AD Administrator Syncfusion Team September 30, 2004 03:57 PM UTC

Hi Ben, Sorry for the delay in responding. 1) I will look into the reason why VB.NET does not pick up the NullButtonClicked event. In the meantime could you please try subscribing to the event through code. Private Sub dateTimePickerAdv1_NoneButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.dateTimePickerAdv1.IsNullDate = True End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim calender As Syncfusion.Windows.Forms.Tools.MonthCalendarAdv calender = Me.dateTimePickerAdv1.Calendar AddHandler calender.NoneButtonClick, AddressOf dateTimePickerAdv1_NoneButtonClick End Sub 2) This is a bug with version 2.1.0.9 which has already been fixed. For now you can set the value in the Null Button clicl event handler. Here is a sample F19587DateTimeNullButtonClickedEvent_7049.zip Please let me know if you have any questions. Thanks. Best regards, Stephen. >I am working with the new version of the Tools (version 2.1.0.9) and have not been able to find the NullButtonDown event in VB. There also seems to be no default behavior for the button, specifically when I press the button the drop down calendar closes and the last date entered is in the text field. > >I have looked through the help files and have not been able to determine if I am missing something so I would appreciate any help with getting the None Button working. > >Thanks >Ben Waters >Technology Coordinator >City Of Scottsdale - Court >


BW Ben Waters October 1, 2004 03:34 PM UTC

Thanks for the Info. The work around has worked correctly and has solved my issue. Thanks Ben Waters Technology Coordinator City Of Scottsdale - Court >Hi Ben, > >Sorry for the delay in responding. > >1) I will look into the reason why VB.NET does not pick up the NullButtonClicked event. In the meantime could you please try subscribing to the event through code. > > Private Sub dateTimePickerAdv1_NoneButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) > Me.dateTimePickerAdv1.IsNullDate = True > End Sub > > Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load > Dim calender As Syncfusion.Windows.Forms.Tools.MonthCalendarAdv > calender = Me.dateTimePickerAdv1.Calendar > AddHandler calender.NoneButtonClick, AddressOf dateTimePickerAdv1_NoneButtonClick > End Sub > >2) This is a bug with version 2.1.0.9 which has already been fixed. For now you can set the value in the Null Button clicl event handler. > >Here is a sample > >F19587DateTimeNullButtonClickedEvent_7049.zip > >Please let me know if you have any questions. Thanks. > >Best regards, > >Stephen. > >>I am working with the new version of the Tools (version 2.1.0.9) and have not been able to find the NullButtonDown event in VB. There also seems to be no default behavior for the button, specifically when I press the button the drop down calendar closes and the last date entered is in the text field. >> >>I have looked through the help files and have not been able to determine if I am missing something so I would appreciate any help with getting the None Button working. >> >>Thanks >>Ben Waters >>Technology Coordinator >>City Of Scottsdale - Court >> > > > >

Loader.
Up arrow icon