Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 826209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:22:45+00:00 2026-05-15T03:22:45+00:00

So, I’ve got a C# project for Windows Mobile phones and I’m trying to

  • 0

So, I’ve got a C# project for Windows Mobile phones and I’m trying to work with the InputPanel. Specifically, I’ve got one form with a stack of Labels and TextBoxes that collect user input. I have an InputPanel that alerts me when the user opens the SIP. Everything works fine so far. When I get messages that the SIP status has changed, I want to change the height of the Form, which doesn’t seem possible.

Here’s my event handler for my InputPanel:

void m_InputPanel_EnabledChanged(object sender, EventArgs e)
{
    // :(  this assignment operation doesn't work and it doesn't               
    this.ClientSize = inputPanel1.VisibleDesktop.Size;
    // doesn't work
    this.Size = inputPanel1.VisibleDesktop.Size;
    // assignment operation works, but isn't very useful
    this.visibleHeight = inputPanel1.VisibleDesktop.Height;
    this.InitializeUI();
}

When I say that the assignment operation doesn’t work, I mean that the values don’t change in the debugger. I can understand that maybe I can’t change the size of a Form, but I can’t understand why trying to change it wouldn’t throw an exception, or give a compiler error.

I have my Form WindowState set to Normal instead of Maximized, but it doesn’t make a difference.

Also, I have read http://www.christec.co.nz/blog/archives/42 this page that tells me how I’m supposed to do this, but I can’t easily put all of my controls in a Panel because I’m using a bunch of custom stuff to do alpha background controls.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:22:46+00:00Added an answer on May 15, 2026 at 3:22 am

    Changing the height and width of a form in .NET CF has no effect whatsoever, unless its FormBorderStyle is set to None.

    However, doing this isn’t a good idea in your case, since you don’t actually want a borderless form. The proper thing to do in your case is to put all of your controls (labels and textboxes) on a Panel (which is sitting on your form, of course), and then resize the panel as the SIP opens and closes.

    Edit: Since I’ve seen this kind of interface in Windows Mobile, please allow me to give you some unsolicited UI advice. Rule #1 for me with .NET CF applications is: “never use the SIP under any circumstances”. The SIP is, of course, completely unusable without a stylus, and not very much use with a stylus, especially with an even slightly out-of-alignment screen.

    If you must break Rule #1 (and of course, you have to break this rule for most kinds of free-form text input), then your UI should at least be polite to the user and do two things:

    1. Don’t continually resize and rearrange your form in response to the SIP opening and closing. If your form requires the SIP, leave permanent space at the bottom to accomodate it.
    2. Don’t make the user open and close the SIP. If your form requires the SIP, open the SIP when your form loads, and close the SIP when your form closes.

    Finally, I’ve generally found it easier to use static methods like this rather than adding an InputControl to each of my forms. I find InputControls to be a pain, and sometimes they get in each other’s way if you have more than one form with an InputControl on it open at the same time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I've got a string that has curly quotes in it. I'd like to replace
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
Specifically, suppose I start with the string string =hello \'i am \' me And
I am reading a book about Javascript and jQuery and using one of the
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.