Goh's solved your question by reversing it, not changing the Textbox Back Color to match your Command Button, but just the opposite, matching the Command Button to the Textbox! This approach is necessary if you want to control the Command Button's Back Color, but to match the color of any Windows-determined object, such as a Command Button, you simply have to use the Windows ColorIDs! For Command Button Back Color that would be
-2147483648
and notice the minus sign in front of the code; it's necessary!
I use these codes so that the colors of my apps match the colors chosen by a given user, for his PC through the Windows Control Box. Here's the entire list:
Color ID... Color Description
----------- -----------------
-2147483648 Scroll bar, Button Back Color
-2147483647 Desktop
-2147483646 Active window title bar
-2147483645 Inactive window title bar
-2147483644 Menu bar
-2147483643 Window
-2147483642 Window frame
-2147483641 Menu Text
-2147483640 Window Text
-2147483639 Title bar text
-2147483638 Active window border
-2147483637 Inactive window border
-2147483636 Application background
-2147483635 Highlight
-2147483634 Highlight Text
-2147483633 3-D face
-2147483632 3-D shadow
-2147483631 Dimmed (disabled) text
-2147483630 Button Text
-2147483629 Inactive window title bar text
-2147483628 3-D highlight
-2147483627 3-D dark shadow
-2147483626 3-D light
-2147483625 ToolTip Text
-2147483624 ToolTip background
-2147483621 Active window title bar color2
Linq ;0)>