English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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.

2006-07-30 20:28:14 · 3 answers · asked by man kh 1 in Computers & Internet Programming & Design

3 answers

The Only Way You Can Possibly Do It Is Through API Calls.

And I'm Not Sure It's Possible

2006-07-30 21:19:30 · answer #1 · answered by TRAXIC 2 · 0 1

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

2006-07-31 07:20:41 · answer #2 · answered by Joe_Young 6 · 0 0

with spray paint or a crayon

2006-07-31 03:33:13 · answer #3 · answered by Charles M 1 · 0 0

fedest.com, questions and answers