Results 1 to 2 of 2

Thread: change font style and color

  1. #1

    Thread Starter
    Member
    Join Date
    May 2002
    Location
    Malaysia
    Posts
    45

    change font style and color

    do someone know how i can change the font style or color of particular text in the textbox?

  2. #2
    Lively Member
    Join Date
    Aug 2001
    Posts
    65
    This is how to change the font type, size and style for a label, which is handled the same way as a text box now in .NET


    Code:
    lblDescription.Font = New System.Drawing.Font("Times New Roman", 8.0!, FontStyle.Regular)

    I'll leave it for you to work out how to change the color of the text in the label above.

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