Graphics.FromHwnd(IntPtr.Zero) not working

"Stefano Del Furia" <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Message-ID <[email protected]>
Hi,
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.
Stefano

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.