by Jeff Deaton (Aurthor) (6 Submissions)
Category: Graphics
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (26 Votes)
This code will show you how to create custom shaped forms based on any image you want to use. Any part of the form that you want to be transparent, just make it pink. (See ScreenShot). I have seen other examples of this on VBC but they were kinda slow. This code is very fast and works by creating and deleting graphical regions in memory. The code is well commented and VERY simple to understand and use. There is also a single executable included if you just want to see it work and don't want to screw with the source code. Enjoy. (Jeff Deaton)
Side Effects
The only side effect that I can think of is when unloading one of these custom forms, you have to delete the Region in memory. This is also documented in code and the code is in the unload event of the form. Region.Dll IS included in case you don't have it.
Upload