cancel
Showing results for 
Search instead for 
Did you mean: 

The Backcolor of the text field

Former Member
0 Kudos

Hi All,

I want to know color code for Edit Text when my EditText.Enabled=False

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

YatseaLi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

I just pick the colour from mspaint with screen shot

Red: 239

Green: 235

Blue: 222

You need to convert to OX**** (16)

Kind Regards

-Yatsea

Former Member
0 Kudos

When I apply this color code to my edit text it is showing some other color. What to do?

Nussi
Active Contributor
0 Kudos

Hi,

i guess you made a mistake in calculating the hex code to decimal.

RGB -> You have always 6 positions

RGB - 255, 255, 255 = (in Hex) FFFFFF = 16,777,215 (in Dec)

so when you want RGB 255,255,255 use

oItem.Backcolor = 16777215

so Blue = 0, 0, 255 = 0000FF = 255

oItem.Backcolor = 255

hope this helps you a bit

lg David

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Try get it


Dim s = oForm.Items.Item("ITEM_UID").BackColor ' Integer 
Console.WriteLine("BackColor=" & s)

Result


BackColor=-1

Regards

Sierdna S.

Former Member
0 Kudos

Hi..

use this code

OForm.Items.Item("Item-ID").BackColor = "-5192482"

Regards...

Billa 2007