Dear Charles,
yes, im using an InputPanel(that thing where you can make inputs, eg.
'a', '1' or 'RETURN'). I developed the Application for PPC2002 but have
to port it to WinCe 4.1 due to a change in the Device. So i tried to use
the "old" code.
What i did in detail: I have a form with a few TextBoxes in a Panel (not
an InputPanel
). If the InputPanel appears a scrollbar should also
appear to get to the invisible area covered by the InputPanel by
scrolling. If the scrollbar gets used, an event (ValueChanged) get
fired, where i move the Panel over the form, as described in some
Tutorials. Everything works fine until i move the scrollbar. If i click
on the InputPanel in the taskbar, the event to make the scrollbar
visible fires as expected. But if i move the scrollbar to get to the
covered areas the Mainmenu disappears somehow.
The following code shows what i did in the ValueChanged-Event of the
Scrollbar:
private void vScrollBar1_ValueChanged(object sender, System.EventArgs e)
{
this.panel.Top = 0 - this.vScrollBar1.Value;
}
"panel" is the Panel where the Textboxes resides.
I dont know why the InputPanel-Event works as the InputPanel-Object
itself does, but it works. I dont get any Exceptions on this.
I hope this can clarify the problem a little bit. Please let me know
what you think about it or how to solve the problem.
Just another small question: On PPC2002 the folowing line gives me the
size of the Desktop/Clientsize(width and height):
this.ClientSize.Width, this.ClientSize.Height
In WinCe i get the size of the whole desktop, which is in fact much
larger that the display. Do you know how to determine the visible area
of the desktop (display)?
Thank you very much for your afford.
Jens