We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

DateTimePickerAdv: NullButtonDown Event

Thread ID:

Created:

Updated:

Platform:

Replies:

19587 Sep 29,2004 10:48 AM Oct 1,2004 11:34 AM Windows Forms 2
loading
Tags: Tools
Ben Waters
Asked On September 29, 2004 10:48 AM

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

Administrator [Syncfusion]
Replied On September 30, 2004 11:57 AM

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 >

Ben Waters
Replied On October 1, 2004 11:34 AM

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 >> > > > >

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;