If you put that code in your main class then the "this" on line 13 refers to an instance of the main class. When the same code is in class Panels, "this" refers to an instance of Panel. So maybe that's why the drawimage is doing something different?
Reputation Points: 1938
Solved Threads: 953
Posting Expert
Offline 5,809 posts
since Apr 2008