Solved

transparent forms with VB5.0

Posted on 1998-01-01
1
236 Views
Last Modified: 2012-06-27
How can i do transparent forms with vb5.0 (like hot spots)?
0
Comment
Question by:mas11
1 Comment
 
LVL 5

Accepted Solution

by:
dirtdart earned 250 total points
Comment Utility
One way to create a "transparent" form would be to use BitBlt to copy the screen to the form.

Declare Function BitBlt Lib "gdi32" Alias "BitBlt" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long

hDestDC is the destination DC, x and y are the upper left coordinates telling it where to start drawing, nHeight and nWidth are the lower right coordinates telling it where to stop drawing.  hSrcDC is the source DC, xSrc and ySrc are the upper left coordinates telling it where to start retrieving the bitmap.  dwRop tells it how to copy the bitmap.  In this case it should be Public Const SRCCOPY = &HCC0020

0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to the message 13 62
Problem to skip loop 6 49
How to Add / Edit Windows Menu 4 23
Visual Studio 2005 text editor 10 18
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 …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

772 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

10 Experts available now in Live!

Get 1:1 Help Now