Skip to Content
author's profile photo Former Member
Former Member

The Backcolor of the text field

Hi All,

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

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Oct 10, 2008 at 06:38 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2008 at 06:38 AM

    Hi..

    use this code

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

    Regards...

    Billa 2007

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2008 at 06:53 AM

    Hi

    Try get it 😊

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

    Result

    BackColor=-1
    

    Regards

    Sierdna S.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.