CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Text Color

  1. #1
    Join Date
    Mar 2001
    Location
    Lynn Haven Fl.
    Posts
    1

    Text Color

    When displaying text in a Text Box or Label can the color of part ot the text be changed from the foreground color?


    Gene

  2. #2
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: Text Color

    No, but you can try this out.

    Place three labels with autosize turned on, and

    label1.caption = "normaltext"
    label2.caption = "coloredtext"
    label3.caption = "normaltext"

    label2.forecolor = vbGreen

    label2.top=label1.top
    label3.top=label2.top


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured