Iam getting the error
an object reference is required for the nonstatic field method or property 'System.Windows .Forms.Control. CreateGraphics( )'
for this part of code
public static void clear()
{
System.Drawing. Graphics objGraphics = null;
objGraphics = CreateGraphics( );
objGraphics.Cle ar(System.Drawi ng.SystemColors .Control);
objGraphics.Dis pose();
}
Need help.
Thanks in advance.
an object reference is required for the nonstatic field method or property 'System.Windows .Forms.Control. CreateGraphics( )'
for this part of code
public static void clear()
{
System.Drawing. Graphics objGraphics = null;
objGraphics = CreateGraphics( );
objGraphics.Cle ar(System.Drawi ng.SystemColors .Control);
objGraphics.Dis pose();
}
Need help.
Thanks in advance.
Comment