Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

InputPanel Crash

3 views
Skip to first unread message

weixiang

unread,
Jan 26, 2005, 7:54:19 AM1/26/05
to
Hi,

When using the InputPanel in .NET CF, I met strange crash:

private void InitializeComponent()
{
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.inputPanel1 = new Microsoft.WindowsCE.Forms.InputPanel();
//
// inputPanel1
//
this.inputPanel1.Enabled = true;
this.inputPanel1.EnabledChanged += new System.EventHandler
(this.inputPanel1_EnabledChanged);

On the simulation environment, the program crashed in the line
"this.inputPanel1.Enabled = true;". And the message is:

An unhandled exception of type 'System.Exception' occurred in
Microsoft.WindowsCE.Forms.dll
Additional information: Exception

What's the correct way to use InputPanel component?

Thank you in advance,
Wei Xiang

Sergey Bogdanov

unread,
Jan 26, 2005, 4:43:28 PM1/26/05
to
Does your device support input panel? This exception will be thrown for
WindowsCE emulator for example cause it doesn't have input panel.

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com

weixiang

unread,
Jan 26, 2005, 7:46:59 PM1/26/05
to
I'm using the CHS Pocket PC Windows Mobile 2003 SE Image. And inside the OS
it can popup the soft-keyboard to input. Is that a InputPanel? If not, how
can I access that?

I have this problem because I want to adjust the component size according to
the input area popup.

"Sergey Bogdanov" <sergey....@gmail.com> wrote in message
news:OMfZUA$AFHA...@TK2MSFTNGP10.phx.gbl...

Sergey Bogdanov

unread,
Jan 27, 2005, 5:58:04 AM1/27/05
to
Try to show Software Input Panel like this:


const uint SIPF_OFF = 0x0;
const uint SIPF_ON = 0x1;

[DllImport("coredll.dll")]
private extern static void SipShowIM(uint dwFlag);

weixiang

unread,
Jan 27, 2005, 9:56:35 PM1/27/05
to
I see. Then I'll try the Sip functions. Thank you very much :)

"Sergey Bogdanov" <sergey....@gmail.com> wrote in message

news:Ot1QV8F...@TK2MSFTNGP12.phx.gbl...

0 new messages