Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Offscreen buffers

Posted on 1998-10-06
3
Medium Priority
?
185 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
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
Mirkwood earned 210 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

886 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