Solved

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

Posted on 2003-12-05
4
695 Views
Last Modified: 2013-12-27
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
0
Comment
Question by:ieg
  • 2
  • 2
4 Comments
 
LVL 48

Expert Comment

by:Mikal613
Comment Utility
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
0
 
LVL 6

Expert Comment

by:purpleblob
Comment Utility
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.
0
 
LVL 6

Accepted Solution

by:
purpleblob earned 250 total points
Comment Utility
Sorry I should have also stated that obviously the panel is made taller and/or wider than the form, thus it scrolls.

Also found this link http://samples.gotdotnet.com/quickstart/compactframework/ click on the Scrolling Form Contents
link- it looks like it's doing what I suggested in the previous response :-)
0
 
LVL 48

Expert Comment

by:Mikal613
Comment Utility
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
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now