[Mono-winforms-list] Graphics.FromHwnd(IntPtr.Zero) not working

Stefano Del Furia delfo at edudotnet.it
Sun Feb 7 14:52:03 EST 2010

i'm using Graphics.FromHwnd(IntPtr.Zero) for drawing directly on screen but 
under Ubuntu 9.04 it don't work. 
The method don't return a null value but when i try to draw some object like 
a a line nothing happened like in this way:

            Graphics g = Graphics.FromHwnd(IntPtr.Zero);
            Point pMousePos = new Point(e.X, e.Y);
            g.DrawLine(p, pMousePos, lastPoint);

What am i wrong ??
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20100207/e8e2ce7a/attachment.html 

More information about the Mono-winforms-list mailing list