Hello,
I have EP10 with Windows Mobile 6.5.3.
I have made a software (C# 2008 CF) with a form divided in three panel (header, body and footer). When the body is longer than the space available, a vertical scroll automatically appear (AutoScroll = true), but cannot scroll with the EP10 vertical scroll button. The EP10 buttons works properly with Windows menu.
Can you help me, please?
Thanks
Best regards
It cannot scroll? Meaning, the stylus can't seem to grab/touch the scroll button to move it?
It's possible that its too thin.
Try experimenting with the scrollbar size. Here's a project that shows how to do that: http://www.codeproject.com/Articles/80153/Vertical-Scroll-Bar-Width-in-a-Windows-Mobile-NET
the stylus works properly. I mean the vertical scroll button shown in the figure
Those keys send the VK_UP and VK_DOWN virtual keys to the form with keyboard focus. If you have multiple panels, there may be a conflict as to how (and how) handles that VK_UP and VK_DOWN messages.
You could try intercepting and handling the keypress events at the form level by setting Form.KeyPreview to 'true': http://msdn.microsoft.com/en-us/library/system.windows.forms.form.keypreview.aspx
There's a couple of threads online that discuss several ways to handle similar situations. Here's one: http://bytes.com/topic/c-sharp/answers/908919-keypress-navigation-array-controls
It works!
settting form property KeyPreview = true
On Keydown event I check:
e.KeyValue == 38 // UP
e.KeyValue == 40 // DOWN
panel1..AutoScrollPosition = new Point(0, 100);
// Where 100 is the increment. You can change the value to scroll more. To back, put negative numbers.