Are you trying to call this stuff from a static method? Because if so, that'll be the problem. You'd need to make the method not static, or make everything else inside the method static. Or wait, if your using a static method, pass frmMain as a parameter, and then it should work: static void myMethod(Form myForm) { myForm.paintDisplay(); } ... myMethod(frmMain) and if your method isn't static, then im not sure. Keep at it though.
My current favourite word is: Waffle Cheese is still good though.