Addlabel or Textbox Disabled

Discussion in 'Questions (Windows Mobile)' started by tvrman, Jun 29, 2007.

  1. tvrman

    tvrman Member Licensed User


    I want in a form some labels, the labels should be shows the contents
    of an variable, for examples the tables row count.
    In an textbox disabled it looks ugly and to use it via addlabel
    it shows an background which is not the same as the form self.

    How can i do it?

    see example
  2. Cableguy

    Cableguy Expert Licensed User

    Use a Label!

    Its background is the same as the forms's and is not editable...

    label1.text=your variable

    see the helpfile for AddLabel
  3. specci48

    specci48 Well-Known Member Licensed User

    Hi tvrman,

    the default color of a form is 220,220,220.
    Labels added at runtime get a default color of 212,208,200 (I don't know why ... :confused:)

    So you have to correct the color property of a label added at runtime manually to the default form value.

  4. tvrman

    tvrman Member Licensed User

    :signOops: i need to read TFM...
  5. tvrman

    tvrman Member Licensed User

    Yes that was i notice too, but i found meanwhile the solution thanks
  6. Erel

    Erel Administrator Staff Member Licensed User

    You could write:
    Label1.Color = Form1.Color
    instead of the exact color.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice