Chow
02-06-2005, 06:02 AM
Im atempting to change the colour of all of the command buttons in my project, i have succesfully managed to do that with the form back colour and the MDI colour. However i cant seem to be able to changet he colour of a command button (using a combo box- with the names of colours being displayed and coding behind it) Which ever colour the user selects and the "Display" button is pressed the command buttons should change colour but they do not.
I have attempted to do it this way:
FrmEditColour.CmdDisplay.BackColor = TxtProjectedCol3.BackColor
(The Cmd Display is the command button)
(The txtProjectedCol3 is a text box with a colour in it- which should make the command button change colour)
Is there anyway of doing this, or have i done something wrong/need to modify my code?
I have attempted to do it this way:
FrmEditColour.CmdDisplay.BackColor = TxtProjectedCol3.BackColor
(The Cmd Display is the command button)
(The txtProjectedCol3 is a text box with a colour in it- which should make the command button change colour)
Is there anyway of doing this, or have i done something wrong/need to modify my code?