Computer Science Canada Trouble with Object Reference |
Author: | Gooie [ Sun Jan 20, 2008 10:35 am ] | ||
Post subject: | Trouble with Object Reference | ||
I'm just trying to figure out how I could easily make a game, with Visual Basic 2008. I was looking at:
But to use, System.Windows.Forms.PaintEventArgs, I need an 'Object Reference'. How is this done? And Microsoft has a terrible help menu... Its all Vista ads. |
Author: | Euphoracle [ Sun Jan 20, 2008 11:43 am ] |
Post subject: | RE:Trouble with Object Reference |
You cannot simply "get" a graphics object. They are handed to you when needed. For example, you can get the screen's graphics object and draw directly, or you can overload or hook an event to a form's OnPaint or similar. You do not have direct access to things; that would defeat the purpose. |