Well, what kind of class do you want to generate a device context for
(which the Graphics class is really a wrapper for).
What exactly are you trying to do? The device context is something that
is typically generated for you. Unless you have some sort of output device
which windows doesn't handle (which would be wrong, since you should go
through the hardware abstraction layer to get a device context to output on
anyways), you really shouldn't be creating a Graphics instance yourself.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
How to write a CreateGraphics method for a class similar to
form.CreateGraphics()?
Pls help. Thanks in Advance.- Hide quoted text -
- Show quoted text -