Home All Groups Group Topic Archive Search About

Help! OnClick event in VScrollBar in .Net Compact Framework

Author
23 Mar 2006 11:06 AM
Cornel Gligan
Hi!

I tried to catch the Click event from a VScrollBar control but the Click
event is not rised. MSDN says that OnClick event is suported by .Net Compact
Framework and, in this case, I supose that the click event sould be rised bu
VScrollBar.

In this case I derived a class from VScrollBar and I overrided the OnClick
protected method. I failed again because the overrided OnClick method is
never called.

I derived another class from Control and I overrided again the OnClick
method. In this case the overrided OnClick method was called.

Please, there is anybody who can tell me what is happening with OnClick
method and Click event for VScrollBar control? And what should I do to catch
the Click event for VScrollBar? Or what should I do to make it work OnClick
overrided method in a derived class from VScrollBar?

I use Windows XP Professional, Visual C# fromVisual Studio 2005 Professional
Edition, .Net Compact Framework 1.0 or 1.1

Thank you in advance!

Best regards,
Cornel Gligan

Author
23 Mar 2006 11:14 AM
Daniel Moth
It is not supported regardless of what you read on msdn. Documentation and
intellisense are not always great for CF v1.0 (there is no v1.1):
http://www.danielmoth.com/Blog/2005/04/intellisense-for-smart-device-project.html

The real question is, why do you feel you need to handle that? What is your
end user scenario and we might be able to help with a workaround.

I don't know which group you actually posted from but please respond to
compactframework *only* if you need to follow up.

Cheers
Daniel
Show quote
"Cornel Gligan" <a@b.c> wrote in message
news:OxXz$nmTGHA.5900@tk2msftngp13.phx.gbl...
> Hi!
>
> I tried to catch the Click event from a VScrollBar control but the Click
> event is not rised. MSDN says that OnClick event is suported by .Net
> Compact Framework and, in this case, I supose that the click event sould
> be rised bu VScrollBar.
>
> In this case I derived a class from VScrollBar and I overrided the OnClick
> protected method. I failed again because the overrided OnClick method is
> never called.
>
> I derived another class from Control and I overrided again the OnClick
> method. In this case the overrided OnClick method was called.
>
> Please, there is anybody who can tell me what is happening with OnClick
> method and Click event for VScrollBar control? And what should I do to
> catch the Click event for VScrollBar? Or what should I do to make it work
> OnClick overrided method in a derived class from VScrollBar?
>
> I use Windows XP Professional, Visual C# fromVisual Studio 2005
> Professional Edition, .Net Compact Framework 1.0 or 1.1
>
> Thank you in advance!
>
> Best regards,
> Cornel Gligan
>

AddThis Social Bookmark Button