Results 1 to 4 of 4

Thread: FontSize in RichTextBox with ComboBox

  1. #1

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Post

    I'm trying to set the fontsize in a RichTextBox with a ComboBox, but I can't get it to work! I'm´using the following code:

    Text.SelFontSize = SizeFont.List(SizeFont.ListIndex)
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  2. #2
    Hyperactive Member
    Join Date
    Feb 2000
    Posts
    284

    Post

    Should it not be

    RichTextBox1.Font.Size = ........?

  3. #3
    New Member
    Join Date
    Mar 2000
    Location
    Cd. Obregon, Son. Mexico
    Posts
    4

    Post

    Try this:

    RichTextBox.SelFontSize = Combo1.Text

    Mary



    Edited by Cokita on 03-08-2000 at 06:22 PM

  4. #4
    Member
    Join Date
    Jan 2000
    Location
    derby,UK
    Posts
    38

    Post

    richtextbox1.fontsize = 12

    maybe?

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