Creates a Graphics for the entire window of the control rather than just it's client area. The controls foreground color and background color become the default values for the Graphics. The returned Graphics must be disposed through a call to its dispose() method when it is no longer needed. The Graphics Object is only valid for the duration of the current window's message.
[Visual Basic] Public Function CreateWindowGraphics() As Graphics [C#] public Graphics CreateWindowGraphics(); [C++] public: Graphics* CreateWindowGraphics(); [JScript] public function CreateWindowGraphics() : Graphics;
the Graphics for this control.
RichControl Class | RichControl Members | System.WinForms Namespace