Solved

Offscreen buffers

Posted on 1998-10-06
3
166 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 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now