Control Object Prioroties

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Sorry this may seen a stupid question

As far as I am aware that I cant have multiple fonts and colours on a button
so inorder to meet the needs of my form I have created text boxes with
different colours depending on the value and sat them on top of the button
However when I click the button the textboxes disappear

Is there a value that can be set to keep these to the top at all times ???

Many Thanks In advance

Regards
 
As far as I am aware that I cant have multiple fonts and colours on a

Do you mean *different* at the same time, or just change it?

You can change the font, color, and text etc. in code, but of course you
can't have *more* then one color/font on the button at the same time...

For changing the color, text etc. you can go:

Me.Command18.Caption = "The is Bold Red Text"

Me.Command18.FontBold = True
Me.Command18.ForeColor = vbRed


The above would set text to bold, to "The is Bold Red Text", and the color
to red

Me.Command18.ForeColor = rgb(0,255,0)

The above would set the text color of the button to green...

And for font you can use......

me.Command18.FontName =
 
Sorry Albert

Didnt make myself clear in the initial post

In order to get round not being abot to have 2 colours on the button I have
placed two text boxes of different colour on top of it However when the
button is pressed it comes to the fore and the two text boxes disappear

I am seeking a method or a property that will keep the two text boxes to the
front at all times even after the button is used

Many Thanks again
 
Back
Top