How to Change the Command Button Color in a Visual Basic 6.0

How to Change the Command Button Color in a Visual Basic 6.0 thumbnail
Visual Basic buttons provide an interface for your application.

Part of creating Visual Basic applications is designing buttons that make it easy for users to navigate through the application and provide data input. The Visual Basic button is a class that has several options available for customization. One option is the "BackColor" property, which changes the button's color and leaves the font color as the default. Each button on your Visual Basic form can have a different color, depending on your choices for the application.

Instructions

    • 1

      Open your Visual Basic project and double-click the form in Solution Explorer that contains the button. Click the button to activate its property list window.

    • 2

      Scroll down to the property text box labeled "BackColor." A button is activated, which is used to choose a color for your button.

    • 3

      Select a color from the popup dialog window that opens and press the "Ok" button. Notice the button's color changes on your form.

    • 4

      Click the "F5" key to compile and run the program in the debugger mode. Notice the button's color is changed on the form.

Related Searches:

References

  • Photo Credit applicator image by Aleksandar Jovanovic from Fotolia.com

Comments

You May Also Like

Related Ads

Featured