advertisement

Find Code  Advanced Search   

browse free vb code
Submit Code
ASP,  HTML, and XML
Database
Dates  and Math
Files  and Directories
Forms  and Controls
Lists,  Collections, and Arrays
Miscellaneous
Multimedia/Games
Office/VBA
Network/Internet
Registry
Screen/Graphics
String  Manipulation
System/API
Windows  2000/XP
VB.NET/ASP.NET



advertisement
Use a Bitmap to Create a Skinnable Irregular-Shaped Form

Author: Elad Rosenheim
Category: Screen/Graphics
Type: Applications
Difficulty: Advanced

Version Compatibility:  Visual Basic 5   Visual Basic 6

More information: A lot of applications today allow custom bitmaps ("skins") to be used as the user-interface/background to the program - Take Winamp for example.

Some applications (such as the MP3 players Sonique and kjofol) allow you to use non-rectangular bitmaps with transparent sections.

The following demo does just that. I'm no graphics artist, though, so to create a better-looking skin you'll have to work hard - but the code is here for you to do it.

Note that you can move the form by pressing and dragging the mouse anywhere on the form - even though it doesn't have a title bar.

This code has been viewed 76374 times.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

code/bitmap_region.zip

Sponsored Links


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers