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. How to Draw string Unicode ? Urgent need

How to Draw string Unicode ? Urgent need

Scheduled Pinned Locked Moved Visual Basic
graphicshelptutorialquestion
2 Posts 2 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
    nimolZero
    wrote on last edited by
    #1

    Hi there i got a problem to draw string Unicode on form . but function drawstring can't support unicode , do u have anyway to drawstring text that support unocode ? pls point me anyway what should i do next and give me some codes about that ? Example: Dim drawFormat As New StringFormat() Using formGraphics As Graphics = Me.CreateGraphics(), _ drawFont As New System.Drawing.Font("Khmer Os system", 16), _ drawBrush As New SolidBrush(Color.Red) formGraphics.DrawString("???????????", drawFont, drawBrush, _ 150.0, 50.0, drawFormat) End Using that example above can't draw string correctly , Pls help me i need Urgent. thank you in advance . regard from Spider Anatha

    C 1 Reply Last reply
    0
    • N nimolZero

      Hi there i got a problem to draw string Unicode on form . but function drawstring can't support unicode , do u have anyway to drawstring text that support unocode ? pls point me anyway what should i do next and give me some codes about that ? Example: Dim drawFormat As New StringFormat() Using formGraphics As Graphics = Me.CreateGraphics(), _ drawFont As New System.Drawing.Font("Khmer Os system", 16), _ drawBrush As New SolidBrush(Color.Red) formGraphics.DrawString("???????????", drawFont, drawBrush, _ 150.0, 50.0, drawFormat) End Using that example above can't draw string correctly , Pls help me i need Urgent. thank you in advance . regard from Spider Anatha

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

      You don't need to create a red brush, you can use Brushes.Red. In fact, all strings are unicode in .NET. What makes you think you can't use a unicode string ? How are you trying to ?

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      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