C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

how to display unicodes


Posted Date: 24 Nov 2008      Posted By: sirisha choudhary      Member Level: Silver     Points: 1   Responses: 2



how to display unicodes in vb.net i need to convert ascii value of 251 to ascii charater

reply soon
thanks in advance





Responses

Author: Sudip    24 Nov 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 5

Hi Sirisha,

Currently all simple VB control includes textbox label can only support ANSI code and when we assign value to these controls VB will automatically convert the Unicode to ANSI based on current system code page.
If you really need to use Unicode supported controls, Forms 2.0 control comes from Office will be a good choice for you. Using Form2.0 controls outside Office is not supported by Microsoft,
it works well with most of the VB applications. All form 2.0 controls can support Unicode well and display them correctly.

Wish you all the best.



Author: Sudip    24 Nov 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 6

Hi Sirisha,

Here are some more example to give you proper solution:
' MDI form sample
Option Explicit

Public Sub CaptionW(Optional ByRef NewCaption As String)
' update to new caption if a non vbNullString was passed
If StrPtr(NewCaption) Then Me.Tag = NewCaption
' must have active form
If Not Me.ActiveForm Is Nothing Then
' see if window state is maximized
If Me.ActiveForm.WindowState = vbMaximized Then
' show both child caption and MDI caption
UniCaption(Me) = UniCaption(Me.ActiveForm) & " - " & Me.Tag
Else
' show only MDI caption
UniCaption(Me) = Me.Tag
End If
Else
' show only MDI caption
UniCaption(Me) = Me.Tag
End If
End Sub

Private Sub MDIForm_Load()
' set initial caption
Me.CaptionW "MDI: " & ChrW$(&H3042)
End Sub

Thank you.



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : template textbox in Detailview
Previous : Console Applications C#
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use