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