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
  1. Home
  2. General Programming
  3. Visual Basic
  4. Convert string to font

Convert string to font

Scheduled Pinned Locked Moved Visual Basic
tutorial
4 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.
  • N Offline
    N Offline
    NANCO
    wrote on last edited by
    #1

    Hi! could anyone tell me how to convert a string(that is a font) that I saved to to reg using savesetting(..) to font object using getsetting(..) so I can assign it back a textbox. summary: convert string back to font thanx in advance.:cool:

    C W 2 Replies Last reply
    0
    • N NANCO

      Hi! could anyone tell me how to convert a string(that is a font) that I saved to to reg using savesetting(..) to font object using getsetting(..) so I can assign it back a textbox. summary: convert string back to font thanx in advance.:cool:

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

      Well, what is the value of the string ? Does it specify font name, size, weight, etc ?

      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
      • N NANCO

        Hi! could anyone tell me how to convert a string(that is a font) that I saved to to reg using savesetting(..) to font object using getsetting(..) so I can assign it back a textbox. summary: convert string back to font thanx in advance.:cool:

        W Offline
        W Offline
        Werries
        wrote on last edited by
        #3

        Hi there, The best is to save each setting of the font into its own registry entry, or save the settings of the font in delimited format into one registry entry and reverse it into a new font value that you can apply to the textbox. Regards, Werries

        A programmer's life is good... or is it?? Ek dink nie so nie!

        N 1 Reply Last reply
        0
        • W Werries

          Hi there, The best is to save each setting of the font into its own registry entry, or save the settings of the font in delimited format into one registry entry and reverse it into a new font value that you can apply to the textbox. Regards, Werries

          A programmer's life is good... or is it?? Ek dink nie so nie!

          N Offline
          N Offline
          NANCO
          wrote on last edited by
          #4

          I found a way, thanks anyway.:cool:

          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