Unicode encoding: : Unicode Display « GUI Windows Form « C# / C Sharp

Home
C# / C Sharp
1.2D Graphics
2.Class Interface
3.Collections Data Structure
4.Components
5.Data Types
6.Database ADO.net
7.Design Patterns
8.Development Class
9.Event
10.File Stream
11.Generics
12.GUI Windows Form
13.Language Basics
14.LINQ
15.Network
16.Office
17.Reflection
18.Regular Expressions
19.Security
20.Services Event
21.Thread
22.Web Services
23.Windows
24.Windows Presentation Foundation
25.XML
26.XML LINQ
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source
C# / C Sharp » GUI Windows Form » Unicode DisplayScreenshots 
Unicode encoding:
Unicode encoding:


   using System;
   using System.Drawing;
   using System.Collections;
   using System.ComponentModel;
   using System.Windows.Forms;
   using System.Data;

   public class Unicode : System.Windows.Forms.Form {
      System.Windows.Forms.Label  myLabel = new System.Windows.Forms.Label();

      public Unicode()
      {
         this.SuspendLayout();

         this.myLabel.Font = new System.Drawing.Font("Microsoft Sans Serif"50.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
         this.myLabel.Location = new System.Drawing.Point(2020);
         this.myLabel.Size = new System.Drawing.Size(800800);

         this.AutoScaleBaseSize = new System.Drawing.Size(513);
         this.ClientSize = new System.Drawing.Size(800200);
         this.Controls.AddRange(new System.Windows.Forms.Control[] {this.myLabel});
         this.Name = "Unicode";
         this.Text = "Unicode";
         this.Load += new System.EventHandler(this.Unicode_Load);
         this.ResumeLayout(false);
      }

      [STAThread]
      static void Main() 
      {
         Application.Run(new Unicode());
      }

      private void Unicode_Load(object sender, System.EventArgs e)
      {
         // Portuguese
         char[] portuguese = {'\u0053''\u0065''\u006A'
                                '\u0061''\u0020''\u0062''\u0065''\u006D',
                                '\u0020''\u0076''\u0069''\u006E''\u0064',  
                                '\u006F''\u0020''\u0061''\u0020' };                   

         myLabel.Text = new string(portuguese"Unicode" '\u0021';
      }
   }

           
       
Related examples in the same category
1.Unicode encoding: EnglishUnicode encoding: English
2.Unicode encoding: GermanUnicode encoding: German
3.Unicode encoding: FrenchUnicode encoding: French
4.Unicode encoding: JapaneseUnicode encoding: Japanese
5.Unicode encoding: RussianUnicode encoding: Russian
6.Unicode encoding: SpanishUnicode encoding: Spanish
7.Unicode encoding: implified ChineseUnicode encoding: implified Chinese
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.