On Dec 30, 3:09*pm, Registered User <n4...@ix.netcom.com> wrote:
> On Fri, 30 Dec 2011 01:29:48 -0800 (PST), Sonnich Jensen
>
> <sonnichjen...@gmail.com> wrote:
>
> - much snippage -
>
> >Well, the problem remain. Just the component itself does this, with a
> >form and the component. Right clicking on the form when the drop down
> >is open cause the same - the DTP returns to it original value
> >Try it yourself
>
> I have tried it. Previously in this thread I described the control's
> behavior as being nothing similar to what you're experiencing. A
> right-click on the DateTimePicker's dropdown displays a context menu.
not on the drop down, but OUTSIDE the DTP - click on the form itself
then the date turns back to the original
I see the context menu too (select today)
>
> When you tried it, was it in a new forms app or just in an empty form
> in your app? I suspect the latter because in the original post it was
> written
that is what I am doing now
>
> - quote -
> * * * * This is a problem, as the right click is used our app.
> - end quote -
>
> One thing to note is the control does not expose its MouseClick event.
> This makes sense because on the dropdown a left-click indicates a
> selection while a right-click brings up a built-in context menu.
>
> All this leads me to believe that somewhere in the application mouse
> messages are being hooked in order to promote the app's right click
> behavior. This would explain the unexpected behavior of the
> DateTimePicker control.
>
> regards
> A.G.