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();
}

Got an answer on MSDN >> HERE << yesterday that I was able to modify to work.
The key, apparently, is to set the
Bounds, not theSizeor theLocation.Here is what I went with:
I hope that posting the solution helps someone, one day.