For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > May 2005 > Graphics object









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Graphics object
biohazard_productions

2005-05-30, 8:58 pm

I have a SPV C500 and I am developing a spreadsheet application for it.
Since i use GDI (is it GDI anymore in .NET ?), I should avoid redrawing the
screen as much as possible. So, to do this, I try to call "Graphics x =
drawArea.GetGraphics();" which works deployed on the computer, but crashes on
the SPV. This has been a VERY annoying issue for me, and if you know a
solution, please reply ... I am quite desperate :P
Thanks.
Alex Feinman [MVP]

2005-05-31, 4:01 am

In compact framework very few controls support CreateGraphics call. In your
case you want to create a custom control (derive it from Control class) and
make sure you use off-screen painitng too for the reasons of performance

--
Alex Feinman
---
Visit http://www.opennetcf.org
"biohazard_productions" <biohazard_productions@discussions.microsoft.com>
wrote in message news:2F3FC18D-8FBF-4466-B53C-DF1F1E2C0D93@microsoft.com...
> I have a SPV C500 and I am developing a spreadsheet application for it.
> Since i use GDI (is it GDI anymore in .NET ?), I should avoid redrawing
> the
> screen as much as possible. So, to do this, I try to call "Graphics x =
> drawArea.GetGraphics();" which works deployed on the computer, but crashes
> on
> the SPV. This has been a VERY annoying issue for me, and if you know a
> solution, please reply ... I am quite desperate :P
> Thanks.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com