Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. I need to change the font size of text using listbox in richtextbox

I need to change the font size of text using listbox in richtextbox

Scheduled Pinned Locked Moved C#
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ahmed R El Bohoty
    wrote on last edited by
    #1

    I need to change the font size of text using listbox in richtextbox thanks in advance..:)

    C D 2 Replies Last reply
    0
    • A Ahmed R El Bohoty

      I need to change the font size of text using listbox in richtextbox thanks in advance..:)

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      What do you mean ? You want a listbox to list the sizes ? Then you capture the index changed event and use the value to set the font size in the rich text box ? Which bit is causing you grief ?

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • A Ahmed R El Bohoty

        I need to change the font size of text using listbox in richtextbox thanks in advance..:)

        D Offline
        D Offline
        darkelv
        wrote on last edited by
        #3

        ahmed17 wrote:

        I need to change the font size of text using listbox in richtextbox thanks in advance..

        Thanks for telling us too. :) Fonts are immutable, you can not directly change the size of the font of the richtextbox. You will need to create a new font and assign to the richtextbox's font property.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups