Click here to get back home

Print Screen difficulty

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Print Screen difficulty jp2msft 06-19-2008
Posted by jp2msft on June 19, 2008, 10:16 am
Please log in for more thread options
Does anyone have some code they could share on how to do a screen capture on
a Pocket PC or Windows Mobile device using Visual Studio 2005 (i.e Managed
Code)?

I wrote code to do it once before using eMbedded VC, but very little of this
will port over.

I've got working code for C# WinForms, except that it uses SendKeys.
Unfortunately, SendKeys is not a part of the Compact Framework.

Here's my code, if it helps:

[c# code]
private Bitmap m_bmp;

public Bitmap PrintScreen()
{
SendKeys.SendWait("%%"); // SendKeys is not defined!
IDataObject ido = Clipboard.GetDataObject();
if (ido.GetDataPresent(DataFormats.Bitmap) == true)
{
m_bmp = (Bitmap)ido.GetData(DataFormats.Bitmap);
string filename = "Bitmap_"
+ DateTime.Now.ToFileTimeUtc().ToString()
+ ".bmp";
m_bmp.Save(filename, Imaging.ImageFormat.Bmp);
}
}
[/c# code]

I'm trying to create tutorials for my CE Apps, and it would sure be nice if
I could write screen capturing calls in my code whenever key events happen.

Thanks for any help! (this is a duplicate post, but I've received no answer
from the sister group that I posted in earlier)


Similar ThreadsPosted
How to print receipts in handheld wm5? July 9, 2008, 5:39 am
Print to remote printer from web services called by smartphone (newbie) August 5, 2005, 6:36 pm
Full screen application changes home screen? May 23, 2007, 9:03 am
Where does the 'dialing...' screen come from in CE 5.0 December 12, 2005, 10:14 am
home screen over the top October 5, 2006, 2:29 pm
Home Screen Plugin June 9, 2005, 2:18 pm
Popup screen with text from sms June 17, 2005, 10:08 am
Displaying Volume screen June 28, 2005, 10:41 pm
Dialog full screen? July 12, 2005, 6:00 am
Question on the splash screen. September 20, 2005, 8:42 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap