473,321 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

MonthCalendar MouseDoubleClick

For some reason, the MonthCalendar class (control) does not show the
MouseDoubleClick method (event) in the VS IDE. I added an event
handler but can't get the succker to fire the event it points to.

Any idea what I'm doing wrong? Here is the code I added...

Public Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
AddHandler MonthCalendar1.MouseDoubleClick, AddressOf MDC_event
End Sub

Private Sub MDC_event(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs)
' Do something
End Sub
Thanks in advance,
Jacob
Sep 12 '08 #1
1 4349
On Sep 12, 3:49 pm, Jacob <ja...@letitgo.orgwrote:
For some reason, the MonthCalendar class (control) does not show the
MouseDoubleClick method (event) in the VS IDE. I added an event
handler but can't get the succker to fire the event it points to.

Any idea what I'm doing wrong? Here is the code I added...

Public Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
AddHandler MonthCalendar1.MouseDoubleClick, AddressOf MDC_event
End Sub

Private Sub MDC_event(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs)
' Do something
End Sub

Thanks in advance,
Jacob
Same with VB 2008 Express + .NET 3.5 SP1. Though IntelliSense doesn't
offer Double Click and Click events for MonthCalendar unlike MSDN
docs, however when you define event strictly within handles clause, no
compilation error is claimed, interestingly, also the event isn't
raised at runtime on doubleclick though application is compiled
without indicating any exception:

Private Sub MonthCalendar1_DoubleClick(ByVal sender As System.Object,
_
ByVal e As System.EventArgs) Handles MonthCalendar1.DoubleClick
MsgBox("test")
End Sub

However behaviour is the same as Combobox, CheckBox and Button.
(IntelliSense doesn't offer DoubleClick but compiling is succeeded,
but event isn't raised) based on my tests.
Onur Güzel
Sep 13 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Ty Smith via AccessMonster.com | last post by:
I noticed that the week numbers in Stephan Leban's MonthCalendar are not consistent with Microsoft Outlook (they are shifted one week forward). Is there any way I can sync these two up by changing...
3
by: michael_hk | last post by:
Hi, I am new to Windows Form programming and now have a simple Q about MonthCalendar. I want to hightlight some days in the calendar by changing the background color of these days. But I...
13
by: steven | last post by:
A monthcalendar checks every 2 minutes if theres a new day. Does anyone knows how to disable this ? The problem is that, everytime a monthcalendar checks this, the form where the monhcalendar is...
0
by: steven | last post by:
Start a new project with 2 forms: one with a datagrid, a button and a monthcalendar, and another form without controls. Try this code in your form with the monthcalendar: Private Sub...
8
by: vbmark | last post by:
I want the MonthCalendar control to return the single day selected. I have MaxSelectionCount = 1. What I get back though is this: "SelectionRange: Start: 5/5/2005 12:00:00 AM, End: 5/5/2005...
2
by: meska | last post by:
Hi all, Scenario: I have a MonthCalendar control, and DataGridView. Depending on dates displayed in MonthCalendar I want to update information from database. The Possible Solution: So I...
4
by: senfo | last post by:
Hello All, For some reason, the MouseDoubleClick event for my ComboBox does not appear to be working. I am not subscribed to any other events for this control. I pulled out Spy++ and noticed...
11
by: Randy | last post by:
I have a MonthCalendar on one of my forms. I have disovered that the DateChanged event is triggered not only when the user clicks on a new date, but also if they click on the Previous or Next...
0
by: =?Utf-8?B?RWQgQ29oZW4=?= | last post by:
I am having trouble getting any of the combo boxes to respond to a mouse double click. Nothing happens! I do get a response using the mousedown event, but not a mousedouble click event. I am using...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.