VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Better Transparent Form/Image

by Chad Roe (4 Submissions)
Category: Miscellaneous
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (5 Votes)

After looking at all of the transparent form examples here on vbcoders.com, I decided to write my own. Every current example either makes everything on the form transparent or uses WAY TOO MUCH code. I wrote a very small example that uses 1 form and 1 line of code. It uses a Function that I believe was written by Robert Gainor. Gainor himself wrote an example that used 4 forms and 4 modules. That was just way too much. I reduced it to 1 form, 1 line of code and just a few Declarations and Constants. My example is extremely fast, extremely clean as well as the most simple on VBCode!

Inputs
Simply enter the LONG value of whatever color you want to become transparent.
Assumes
This example will NOT turn the specified transparent colored areas of controls transparent. It will only turn the specified transparent colored areas of the IMAGES you place on the form transparent.
Code Returns
Wherever the image is the color you specified to be transparent, you will be able to see through the form there. Look at my ScreenShot for an example.
Side Effects
It takes roughly 1 second for the transparency to be drawn. You might notice that it takes a second between hitting the RUN button and actually seeing the code. 99.99% of your users will never even notice it.

Rate Better Transparent Form/Image

Download Better Transparent Form/Image

Download Better Transparent Form/Image (7 KB)

Better Transparent Form/Image Comments

No comments have been posted about Better Transparent Form/Image. Why not be the first to post a comment about Better Transparent Form/Image.

Post your comment

Subject:
Message:
0/1000 characters