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. Visual Basic
  4. Font Preview Problem with Fonts not supporting Regular Style

Font Preview Problem with Fonts not supporting Regular Style

Scheduled Pinned Locked Moved Visual Basic
csharpdotnetvisual-studiohelpannouncement
1 Posts 1 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.
  • V Offline
    V Offline
    Vaibhav Sharma
    wrote on last edited by
    #1

    Hi, I am on a project of creating handful VS 2005 addins and one of them is an in-built Font Previewer. Now i have done the basic jobs required to fill the list in an enhanced User Drawn Listbox and on SelectedIndexChange_Event i have updated the preview text. The problem comes in when a Font doesnot support FontStyle.Regular In this case i get an exception stating: "Font 'Whatever be its name' doesnot support the FontStyle Regular." So what can you guys suggest. Awaiting responses from all interested. The project is a VB .NET one, but any CLR compliant version would do.

    Regards, Vaibhav Sharma

    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