Inputpanel Exception

J

John Dinning

Greetings,
I am trying to implement an InputPanel (SIP) using Visual C# .NET. and the
PPC 2002 emulator.
From what I have read its seems straightforward, I have a mainMenu and I
just dropped an inputPanel on my main form, but when I set
inputPanel1.enabled = true; it throws the exception:

"An unhandled exception of type 'System.Exception' occurred in
Microsoft.WindowsCE.Forms.dll"

I have read of others having this trouble but no solution appears to work
for me.

I am new to C#, Visual Studio and the CF and am sure the answer is simple.
Any help would be very welcome.

Thanks,
John.



..
 
J

John Dinning

I have a main menu and the form is visible. I set inputPanel1.enabled = true
when I click on an edit control. This is when the exception occurs.


Carlos Fernandez said:
The InputPanel component requires that a MainMenu control is on the form
and it requires that the form is visible on the screen.
 
J

John Dinning

I don't get that message and I am building for Pocket PC using C#. I do not
have a 'using' clause for Microsoft.WindowsCE.Forms, but it is listed in
'References'.
The app builds, deploys and runs with no errors but throws the exception
when enabling the InputPanel when I click on a control.

From what I have read, I think my problem is something to do with the
inputPanel not being initialized properly before I try to enable it.

What is weird is that I have downloaded a demo app where it works and the
InputPanel code looks identical to mine which doesn't. Maybe I will move my
code to the other app and start from there.

John.


chris said:
i'm, actually having the same problems...when i drop the input panel into
my pocket pc and type in the codes such as inputpanel1.enabled = true , it
somehow display a deployment error and when i check my code, it display like
this:-
Public Class Customer
Inherits System.Windows.Forms.Form
Friend WithEvents InputPanel1 As Microsoft.WindowsCE.Forms.InputPanel

Error msg :Type 'Microsoft.WindowsCE.Forms.InputPanel' is not defined..

issit bcoz something wrong with the namespace
(Microsoft.WindowsCE.Forms.InputPanel) as i'm developing the application in
pocket pc and not window CE? How should i solve this?thanks
 
J

John Dinning

The workaround was to start a new project and cut and paste the rest of the
old project into it. The input panel code looks identical in both projects
but works in the new one. One day I may find some properties in Visual
Studio that I have not found so far. If I have another problem like this I
may be forced to read the manual.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top