devxlogo

Use a Picture Control to Create a Beveled Panel

Use a Picture Control to Create a Beveled Panel

Occasionally, you may want to use on your form a beveled panel that allows you to designate a background bitmap. Rather than use a third-party control, you can use the Picture control provided as a core DLL function (non-OCX) in all versions of Visual Basic 4. Place a Picture control on your form, and set the Appearance property to “1 – 3D” and the BorderStyle property to “1 – Fixed Single.” This creates the bevel effect. Now set the Picture property to the desired image. You may now place controls directly on the picture control. Remember to set the “Background Style” property to “0 – Transparent” for all controls where you would prefer the background image to be displayed.

devx-admin

Share the Post: