Link to home
Start Free TrialLog in
Avatar of ieg
iegFlag for United Kingdom of Great Britain and Northern Ireland

asked on

pocket pc app written in c# - How can I get my form (or parts of it) to scroll.

On a number of my forms the text boxes I would like to enter data in are covered over when the keyboard displays itself on the screen.
Is there a simple way of scrolling my form so that it slides up above the keyboard display and then slides down when the keyboard disappears?

Andy
Avatar of Mikal613
Mikal613
Flag of United States of America image

I have toggled many hours on this and i came up with that you cannot but to get around this you just make sure the textbox you wann awrite has focus and then you use the keyboard and it will type in that textbox. I even tried "scrolling the form" But the form if you notice , You cannot change the size of it. .NET makes the form fit the screen. So basically you have no control over the size or position of the form
Avatar of purpleblob
purpleblob

What about putting your controls onto a panel and hosting the panel on the Form, then you can place one or more scroll bars on the form and alter the Location of the panel hosting your other controls accordingly. Thus you appear to have a scrolling form.
ASKER CERTIFIED SOLUTION
Avatar of purpleblob
purpleblob

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Add a Vertical Scroll Bar to right side of the form

 Private Sub vScrollBar1_ValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles vScrollBar1.ValueChanged
        Me.Inputpanel1.Top = -Me.vScrollBar1.Value
   End Sub