Offscreen buffers

How can I create an offscreen buffer in which I will be able to draw text, lines, circles etc? How will this buffer be of type 'metafile'?
vasiliouAsked:
Who is Participating?
 
MirkwoodConnect With a Mentor Commented:
Create a form and load this form.
You can draw on the form as much as you look and it is invisible.
As soon as you do formx.show the form will be visible
0
 
vasiliouAuthor Commented:
Is this the only way? Can't I do something like

Dim pic as StdPicture
pic.type=vbCFMetafile
pic.line (0,0)-(100,100)

Of course I can't do this! I've tried it! What I want to know with this comment is can I do something LIKE this and not have a form object? StdPicture cannot be instantiated?
0
 
MirkwoodCommented:
The form has a picture object so most likely the code below will work but I haven't tried it.

form.picture.type=vbCFMetafile
form.picture.line (0,0)-(100,100)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.