Thread: StringBuilder problem

  1. #1
    Registered User
    Join Date
    Nov 2003

    StringBuilder problem


    Do you know how I can change font size using StringBuilder?

     StringBuilder str = new StringBuilder();
    and how can I add a text from a textBox to it? (instead of "test" in the example above)

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Hannover, Germany
    You cannot change font size. The font size is a property of the display element. A stringBuilder only holds text, no formatting.

    str.Append( textBox1.Text ); => will append the text of TextBox1 to your string.

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. strcmp problem, whats the problem, i cant figure it out!
    By AvaGodess in forum C Programming
    Replies: 14
    Last Post: 10-18-2008, 06:45 PM
  2. Replies: 4
    Last Post: 10-16-2008, 07:30 PM
  3. StringBuilder
    By C of Green in forum C# Programming
    Replies: 1
    Last Post: 11-18-2006, 10:15 AM
  4. When exactly should a StringBuilder be used?
    By gicio in forum C# Programming
    Replies: 1
    Last Post: 11-08-2003, 04:25 AM
  5. syntax linked list problem & struct problem
    By beely in forum C Programming
    Replies: 5
    Last Post: 11-11-2002, 09:14 AM