Is Windows.Forms.Panel not permitted in WIn CE application ?

  • Thread starter Thread starter chak
  • Start date Start date
C

chak

Why do i get an 'Not supported exception' when i use a
System.Windows.Forms.Panel in a "Win CE" application ? The same runs when
deployed as a Pocket PC application.

Thanks.

An unhandled exception of type
'System.NotSupportedException' occurred in
Microsoft.WindowsCE.Forms.dllthis.panelbtn = new
System.Windows.Forms.Panel();
 
Panel is supported. Can you run other CF apps on that device?

Try a brand new WinCE project and add a panel to the default form using the
designer and run that to see if it still fails.

Cheers
Daniel
 
Yes the Panel control works in Pocket PC 2002 and Windows Mobile 2003 but
not in CF.NET 4.2. Any ideas ?

Thanks.
 
My original comment took in account you saying WinCE project so I gathered
you were talking about a non-PPC device: Panel is supported.

1. Can you run other CF apps on that device?
2. Try a brand new WinCE project and add a panel to the default form using
the designer and run it. Does it fail?

Cheers
Daniel
 
Looking at the error you posted which occurred in Microsoft.WindowsCE.Forms
it would appear to have nothing to do with the Panel control, what is the
previous line in your code before
this.panelbtn = new System.Windows.Forms.Panel();
Where the exception was thrown?

My guess is it's using a piece of functionality from
Microsoft.WindowsCE.Forms and this is where the error lies...

Peter
 
Peter,

The line before the erronous line is a humble :
this.mnuDone = new System.Windows.Forms.MenuItem();

However, sometimes, when i open the form in VS.NET i get this error :-

Could not find type 'Microsoft.WindowsCE.Forms.InputPanel'. Please make
sure that the assembly that contains this type is referenced. If this type
is a part of your development project, make sure that the project has been
successfully built.

Maybe that is the cause ?

But i do have a reference to the Microsoft.Windows.CEForms, and the
application does get built.

Thanks.
 
Back
Top