Formatting Buttons on a form

striker

Useless and getting worse
Local time
Today, 19:38
Joined
Apr 4, 2002
Messages
65
Is it possible to change the colour of buttons on a form if so how

TIA.
 
To the best of my knowledge you can only change the text color.
 
Instead of a "button," use a "textbox" that is "raised." You can make at any color you want.

Set the following properties as follows:

On Mouse Down: = SpecialEffectEnter()

On Mouse Up: = SpecialEffectExit()

Add the following functions to a module:

Private Const conSunken = 2
Private Const conFlat = 0
Private Const conRaised = 1

Public Function SpecialEffectEnter()
Screen.ActiveControl.SpecialEffect = conSunken
Screen.ActiveControl.BackColor = "WhatEver color you want"
End Function

Public Function SpecialEffectExit()
Screen.ActiveControl.SpecialEffect = conRaised
Screen.ActiveControl.BackColor = "Your original back color"
End Function
 
Thanks for the reply It does just what it says.
 

Users who are viewing this thread

Back
Top Bottom