Add event on control

  • Thread starter Thread starter Jan Eliasen
  • Start date Start date
J

Jan Eliasen

Hi

I have a friend who is programming a WinForms solution, and he would
really like an event on the MonthCalendar control for the double
click.

Is this possible?

Thanks in advance
Eliasen Jr. representing himself and not the company he works for.

Private email: (e-mail address removed)
 
Hello,

The MonthCalendar control won't take mouse double click as an event. I
suggest you may consider use MouseDown or MouseUp event instead.

Regards,

Luke Zhang
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
The MonthCalendar control won't take mouse double click as an event. I
suggest you may consider use MouseDown or MouseUp event instead.
Hi

Yes, that is an option - I was hoping for a way to add the event to my
own class which inherits the MonthCalendar. Is that an option?
 
To add a event to a windows form control , we may subclass it:

How to subclass windows in Windows Forms by using Visual Basic .NET or
Visual Basic 2005
http://support.microsoft.com/default.aspx?scid=kb;en-us;311317

However, this won't help on MonthCanladar control because it won't accept
DoubleClick at all.

Luke Zhang
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Back
Top