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 6803613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:21:57+00:00 2026-05-26T19:21:57+00:00

Using the Soft Input Panel ( SIP ) to enter text on my C#

  • 0

Using the Soft Input Panel (SIP) to enter text on my C# WinMobile CF 2.0 application.

There is a textbox at the bottom that I want to enlarge whenever the SIP is pressed.

The SIP is called correctly whenever the TextBox receives focus, but I can’t seem to get the TextBox to grow enough to see the text.

The TextBox is docked to the bottom.

I’ve placed breakpoints in my code, and the SIP_EnabledChanged routine is being hit and the txtNote.Size is being changed …but the size of my TextBox does not change on the display.

Why?

using Microsoft.WindowsCE.Forms;

int startH = txtNote.Size.Height;
// (In the designer):
this.inputPanel1.EnabledChanged += new System.EventHandler(this.SIP_EnabledChanged);

void Form1_Load(object sender, EventArgs e) {
  inputPanel1.Enabled = false;
  startH = txtNote.Size.Height;
}

void SIP_EnabledChanged(object sender, EventArgs e) {
  SuspendLayout();
  int height = inputPanel1.Enabled ? startH + 80 : startH;
  txtNote.Size = new Size(txtNote.Size.Width, height);
  ResumeLayout();
}

TextBox displayed SIP displayed

  • 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-26T19:21:57+00:00Added an answer on May 26, 2026 at 7:21 pm

    Got an answer on MSDN >> HERE << yesterday that I was able to modify to work.

    The key, apparently, is to set the Bounds, not the Size or the Location.

    Here is what I went with:

    int startY;
    
    void Form1() : Form {
      InitializeComponent();
      startY = txtNote.Location.Y; // only set here.
    }
    // Method below fires whenever the Soft Input Panel changes
    void SIP_EnabledChanged(object sender, EventArgs e) {
      int locationY = startY;
      if (inputPanel1.Enabled) {
        locationY -= inputPanel1.Bounds.Height;
      }
      txtNote.SuspendLayout();
      // setting the Bounds was the key to getting this to work!
      txtNote.Bounds = new Rectangle(
        txtNote.Location.X,
        locationY,
        txtNote.Size.Width,
        txtNote.Size.Height
      );
      txtNote.ResumeLayout();
      txtNote.Refresh();
    }
    

    I hope that posting the solution helps someone, one day.

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

Sidebar

Related Questions

How to enter text in button using soft keyboard.So by pressing button the softkeyboard
Using Nunit, I want to be able to write a test fixture that will
I am using the Edit Text field in my application. when i click on
I want to hide soft keyboard from my android application while start the application.
On Android devices that use soft keyboards, I want to prevent the fullscreen keyboard
I need to write VoIP/SIP Soft Phone in C# using WPF interface with Audio
I'm currently working on a soft-input-panel for windows mobile and have run into a
Is there any way to determine whether a linux executable is using soft float
Consider I have created software and want to make that soft to be activated
I'm trying to deactivate the soft keyboard when using a NumberPicker to enter numerical

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.