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

  • Home
  • SEARCH
  • 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 3220258
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:44:26+00:00 2026-05-17T15:44:26+00:00

I am developing mobile application in C#. I am using the keyboard launch functionality

  • 0

I am developing mobile application in C#. I am using the keyboard launch functionality to launch the keyboard on mobile device when one of the textbox gets focused. I am using the following code.

private void inputPanel1_EnabledChanged(object sender, EventArgs e)
        {
            InputEnabled();
        }

        private void InputEnabled()
        {
            int y;

            if (inputPanel1.Enabled)
                // SIP visible - position label just above the area covered by the input panel  
                y = Height - inputPanel1.Bounds.Height;
            else
                // SIP not visible - position label just above bottom of form
                y = Height;

            // Calculate the position of the top of the label
            //y = y - mainPanel.Height;
            //this.Dock = DockStyle.Top;
            //mainPanel.Location = new Point(0, y);
            this.Size = new Size(this.Size.Width, y);
            this.AutoScroll = true;

            //this.AutoScrollPosition = new Point(this.AutoScrollPosition.X, descriptionTextBox.Location.Y);
        }

In the above code I am trying to change the height of windows form dynamically. I have added breakpoint in my application. In the following statement

this.Size = new Size(this.Size.Width, y);

I can see the value of y gets changed to 180 in right side. But in the left side the value of this this.Size remains unchanged. I am totally unaware why this is happening. Can you please tell me is anything wrong in my code or can you provide me the solution so that the value of height in the this.size statement on the left side gets changed ?

  • 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-17T15:44:27+00:00Added an answer on May 17, 2026 at 3:44 pm

    Modifying the form size in a WinMobile application could be tricky and I would rather avoid it if not absolutely necessary.

    In this case, instead of resizing the form you can place your controls into a panel and resize the panel. You can also use the approach for using a soft input panel here: http://www.christec.co.nz/blog/archives/42

    Resize the panel docked to the bottom
    of the form to be the same height as
    the SIP. This moves other controls
    also docked to the bottom of the form
    to be above the area covered by the
    SIP.

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

Sidebar

Related Questions

I am developing mobile application in C#. I am using the following code in
I am developing an application using Windows Mobile 5.0, under embedded VC++ 4.0, and
I'm developing an application for Windows Mobile Devices using Visual Studio .NET 2008 whose
I'll be developing something for a Windows Mobile device using CompactFramework/C#. I wonder if
I am developing a Windows Mobile application using WM6 SDK. The application is a
I'm developing a Windows Mobile 5.0 or above WinForm application using .NET Compact Framework
I'm developing a Windows Mobile 5.0 and above application using .Net Compact Framework 2.0
I am developing asp.net mobile application. I am using LINQ to XML to query
I am developing windows mobile application. I am using the SQLlite database. I am
We're developing a windows mobile 6.1 application and would like to make the user

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.