Solved

Offscreen buffers

Posted on 1998-10-06
3
173 Views
Last Modified: 2010-04-30
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'?
0
Comment
Question by:vasiliou
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
Mirkwood earned 70 total points
ID: 1438354
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
 

Author Comment

by:vasiliou
ID: 1438355
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
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1438356
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month11 days, 12 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question