Windows CE 5.0 program development for smart device using VS2008

I'm trying to develop a program for my car's smartdevice. The OS on the smartdevice is a very very simplified Windows CE 5.0 version with .NET 2.0 (3.5 doesn't work). I can push the NAVIGATION button on the device which (with a trick) brings me to the desktop. via the inserted SD card I can start just a few simple programs which I have downloaded from the internet (besides the original navigation program). I have tried to develop a C# form application in VS 2008 for drawing a very simple line. The form has just one button and one picturebox (pbDrawing). The C# code for the button is:
   Pen pencil= new Pen(Color.Blue, 4);
   Graphics paper= pbDrawing.CreateGraphics();
   paper.DrawLine(pencil, 10, 10, 250, 0);

The projecttype is set to "smartdevice" and the .NET is set to "2.0". It builds successfully and it does run perfect on my laptop, but it just won't work on the smartdevice in my car. What I noticed is that CreateGraphics is not shown by intellisense under .NET 2.0. But if I type the same statements under .NET 3.5 then intellisense does show CreateGraphics. Anyhow both versions of the programs do not run on my smartdevice. Are you able to help me to find the cause? I'm happy to share any further information you need.

Hi,

Your question is outside the scope of this Community.

Kindly post your question to the MSDN Visual Studio Forums.

https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio

TechNet Forums:

https://social.technet.microsoft.com/Forums/en-US/home

MSDN Forums:

https://social.msdn.microsoft.com/Forums/en-US/home

Cheers.

___________________________________________________

Bill Smithers - Microsoft MVP July 2013 - Dec 2020

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated August 27, 2018 Views 82 Applies to: