Re: Graphics.FromHwnd(IntPtr.Zero) not working
Carlos Alberto Cortez <[email protected]>
| Newsgroups | gmane.comp.gnome.winforms |
|---|---|
| Message-ID | <[email protected]> |
Hello, This method is defined basically to retrieve available information in the Graphics instance, not to do actual draw work on the screen (this could be accomplished by a different way, but it would be system specific, as nothing like that appears in the winforms api). Carlos. 2010/2/7 Stefano Del Furia <[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 > > _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list