Hi,
I want to write a C# program for pocket PCs using VS 2005. I want to get all the screen.
0) I need a tutorial for creating C# apps using graphics, please advice me some good tutorials...
1) how to get total size of the screen? Is the only choice is "System.Windows.Forms.Screen.PrimaryScreen.Bounds"?
2) I want to make a picture background for the app but i'm unable to do that? I tried some codes but they all gives FileNotFoundExc (I add the pic to the project and also copy it to the phone). Do you know how to store a picture in the executable file?
3) Is the only type bitmap???
Any piece of help will be appriciated... Thanks.
Mehmedean
Graphics problems in a Pocket PC app?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Master BillaRank #2,229 · 630 reputationPosted Aug 11, 2009, 5:50 PM EDT
1. Add backgroundImage
protected override void OnPaint(PaintEventArgs e) { // For an image added as a project resource in Visual Studio, // get the resource by name. // Bitmap backgroundImage = Properties.Resources.mypicture; // Otherwise, get the image compiled as an embedded resource. Assembly asm = Assembly.GetExecutingAssembly(); Bitmap backgroundImage = new Bitmap(asm.GetManifestResourceStream("mypicture.jpg")); e.Graphics.DrawImage(backgroundImage, this.ClientRectangle, new Rectangle(0,0, backgroundImage.Width, backgroundImage.Height), GraphicsUnit.Pixel); }3.no you can use the png, jpeg also
and see more here details of article to windows mobile and Pocket Pc development
thank you