3D Forms & Controls Without Using A VBX

Do you want to make your controls and forms have that 3D look without adding the overhead of a VBX? Well, it’s easy to do with just Windows API calls. As a matter of fact, the VBX’s you shell out money for are just “wrappers” to those same API calls. With the PAINT3D.BAS module that was written by George Walz, it’s as easy as calling one function…


Sub Form_Paint ()
Call FormIn3D(Me, 1, False)
End Sub

The first parameter is the form, the second is the bevel width and the third is a setting if you are using the MessageBlaster VBX. You can find all the code in PAINT3D.BAS that comes with VB Tips & Tricks.

 

Tips Submitted By: David McCarter – Code Written By: George Walz

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s