In order to use the Graphics class, you need to have a reference to the System.Drawing assembly. In your code, you need to reference the class with a fully qualified reference:
Dim bob As System.Drawing.Graphics
or you need to import the System.Drawing namespace and you can reference Graphics directly:
Imports System.Drawing
...
Dim bob As Graphics
Peter
------------------------------------------------------
Work smarter, not harder.
|