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

Re: InputPanel Crash by Sergey

Sergey
Wed Jan 26 15:43:28 CST 2005

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 wrote:
> 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
>
>
>

Re: InputPanel Crash by weixiang

weixiang
Wed Jan 26 18:46:59 CST 2005

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.bogdanov@gmail.com> wrote in message
news:OMfZUA$AFHA.1556@TK2MSFTNGP10.phx.gbl...
> 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 wrote:
>> 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
>>
>>


Re: InputPanel Crash by Sergey

Sergey
Thu Jan 27 04:58:04 CST 2005

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


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

weixiang wrote:
> 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.bogdanov@gmail.com> wrote in message
> news:OMfZUA$AFHA.1556@TK2MSFTNGP10.phx.gbl...
>
>>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 wrote:
>>
>>>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
>>>
>>>
>
>

Re: InputPanel Crash by weixiang

weixiang
Thu Jan 27 20:56:35 CST 2005

I see. Then I'll try the Sip functions. Thank you very much :)

"Sergey Bogdanov" <sergey.bogdanov@gmail.com> wrote in message
news:Ot1QV8FBFHA.208@TK2MSFTNGP12.phx.gbl...
> 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);
>
>
> Best regards,
> Sergey Bogdanov
> http://www.sergeybogdanov.com
>
> weixiang wrote:
>> 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.bogdanov@gmail.com> wrote in message
>> news:OMfZUA$AFHA.1556@TK2MSFTNGP10.phx.gbl...
>>
>>>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 wrote:
>>>
>>>>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
>>>>
>>>>
>>