Home » questions » How can I change color of controls in VB 6.0 which are not changeable like toolbar and combobox and

How can I change color of controls in VB 6.0 which are not changeable like toolbar and combobox and

2006-07-31 00:28:14, Category: Programming & Design
Toolbar and combobox in VB 6.0 don't have color property with which can change color of their appearance. If there are other properties or other way Please help me.

Answers

  1. TRAXIC

    On 2006-07-31 01:19:30


    The Only Way You Can Possibly Do It Is Through API Calls. And I'm Not Sure It's Possible
  2. Charles M

    On 2006-07-31 00:33:13


    with spray paint or a crayon
  3. Joe_Young

    On 2006-07-31 04:20:41


    Visual Basic ' Command1's BackColor is left at its default (gray). ' Command2's BackColor is explicitly set. Command2.BackColor = System.Drawing.Color.Black ' Explicitly set the BackColor of the form. Me.BackColor = System.Drawing.Color.Red Color Constant Equivalents vbBlack Black vbRed Red vbGreen Green vbYellow Yellow vbBlue Blue vbMagenta Magenta vbCyan Cyan vbWhite White ' Visual Basic 6.0 Combo1.AddItem "This is a new item" Combo1.ListIndex = Combo1.NewIndex Visual Basic (Declaration) Public Overrides Property BackColor As Color Visual Basic (Usage) Dim instance As ComboBox Dim value As Color value = instance.BackColor instance.BackColor = value