Results 1 to 7 of 7

Thread: Font Common Dialog?

  1. #1

    Thread Starter
    Hyperactive Member $uper-$tar's Avatar
    Join Date
    Aug 2001
    Location
    Usa
    Posts
    372

    Question Font Common Dialog?

    Ok, i have a RichTextBox1, and i have a CommonDialog1, now how do i get it to work when selected text = font selected from the Font Dialog screen? (Am i making any sense?)

    -$uper-$tar

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Like this I think
    VB Code:
    1. CommonDialog1.ShowFont
    2. RichTextBox1.SelFontName = CommonDialog1.FontName
    I can't test it because it says I don't have any fonts installed!

  3. #3

    Thread Starter
    Hyperactive Member $uper-$tar's Avatar
    Join Date
    Aug 2001
    Location
    Usa
    Posts
    372

    Unhappy Same problem here too

    No fonts? but... how does it find em?
    J/w
    ~$uper-$tar

  4. #4
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Fixed it!
    VB Code:
    1. CommonDialog1.Flags = cdlCFBoth
    2. CommonDialog1.ShowFont
    3. RichTextBox1.SelFontName = CommonDialog1.FontName

  5. #5

    Thread Starter
    Hyperactive Member $uper-$tar's Avatar
    Join Date
    Aug 2001
    Location
    Usa
    Posts
    372

    Talking LoL Nice!!!

    You wouldn't know the print screen, or color would ya? LoL


    ~$uper-$tar

  6. #6
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    You want to set the colour too? Try this
    VB Code:
    1. CommonDialog1.ShowColor
    2. RichTextBox1.SelColor = CommonDialog1.Color

  7. #7

    Thread Starter
    Hyperactive Member $uper-$tar's Avatar
    Join Date
    Aug 2001
    Location
    Usa
    Posts
    372

    Talking Okida :)

    Going at it right now

    ~$uper-$tar

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