Hi Everyone,

I am writing a simple application to start with Windows Mobile 6. Though, I have developed many applications on .NET Framework 1.1, but this is the first time I am working on Compact Framework.

I have tried to write an application, that creates a simple form with 2 buttons on that, "Hide" and "Unload". I built the application well and copied it to the device. The application was build using FW 3.5 and before running the application on the device, I installed .NET CF 3.5 (NETCFv35.wm.armv4i.cab) on the device and rebooted it.

When I run the application, it fails during the execution of method "InitializeComponent()". The error is below:

SmartDeviceApplication1.exe
NotSupportedException

at
Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar)
at
System.Windows.Forms.Controls._InitInstance(WNT wnt, UInt32 dwStyle)
at
System.Windows.Forms.Control..ctr(WNT wnt)
at
System.Windows.Forms.Button..ctr()
at
SmartDeviceApplication1.Form1.InitializeComponent()
at
SmartDeviceApplication1.Form1..ctor()
at
SmartDeviceApplication1.Form1.Program.Main()


I have only set the text property of the buttons, no tricky code, no functionality ...

I am not clear what is not supported, The button control or the Framework ? OR is it a symptom of some other problem.

Not that this application works well on the Classic device Emulator.

Can some one knows about it ?

Thanks,

*(Vipul)() ;