<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net%2FDevelopment%2FCultureInfo_I18N</id>
		<title>VB.Net/Development/CultureInfo I18N - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net%2FDevelopment%2FCultureInfo_I18N"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/Development/CultureInfo_I18N&amp;action=history"/>
		<updated>2026-04-05T12:20:20Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net/Development/CultureInfo_I18N&amp;diff=768&amp;oldid=prev</id>
		<title> в 16:40, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/Development/CultureInfo_I18N&amp;diff=768&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:06Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 16:40, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net/Development/CultureInfo_I18N&amp;diff=769&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/Development/CultureInfo_I18N&amp;diff=769&amp;oldid=prev"/>
				<updated>2010-05-26T12:45:05Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==CurrentInfo for es-ES==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;  &lt;br /&gt;
Imports System.Globalization&lt;br /&gt;
Imports System.Threading&lt;br /&gt;
Module Module1&lt;br /&gt;
   Sub Main()&lt;br /&gt;
      Dim MyCulture As New CultureInfo(&amp;quot;es-ES&amp;quot;)&lt;br /&gt;
      Dim Myfmt As DateTimeFormatInfo&lt;br /&gt;
      Dim fmt1 As DateTimeFormatInfo&lt;br /&gt;
      Myfmt = MyCulture.DateTimeFormat&lt;br /&gt;
      fmt1 = DateTimeFormatInfo.CurrentInfo&lt;br /&gt;
      Console.WriteLine(Myfmt.GetMonthName(12))&lt;br /&gt;
      Console.WriteLine(fmt1.GetMonthName(12))&lt;br /&gt;
      Console.WriteLine(Thread.CurrentThread.CurrentCulture.DateTimeFormat.GetMonthName(12))&lt;br /&gt;
   End Sub&lt;br /&gt;
End Module&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==List all Culture Information==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt; &lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.Globalization&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Public Shared Sub Main()&lt;br /&gt;
       Application.Run(New Form1())&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    Friend WithEvents columnHeader3 As System.Windows.Forms.ColumnHeader&lt;br /&gt;
    Friend WithEvents listView1 As System.Windows.Forms.ListView&lt;br /&gt;
    Friend WithEvents columnHeader1 As System.Windows.Forms.ColumnHeader&lt;br /&gt;
    Friend WithEvents columnHeader4 As System.Windows.Forms.ColumnHeader&lt;br /&gt;
    Friend WithEvents columnHeader2 As System.Windows.Forms.ColumnHeader&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.columnHeader3 = New System.Windows.Forms.ColumnHeader()&lt;br /&gt;
        Me.listView1 = New System.Windows.Forms.ListView()&lt;br /&gt;
        Me.columnHeader1 = New System.Windows.Forms.ColumnHeader()&lt;br /&gt;
        Me.columnHeader4 = New System.Windows.Forms.ColumnHeader()&lt;br /&gt;
        Me.columnHeader2 = New System.Windows.Forms.ColumnHeader()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;columnHeader3&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.columnHeader3.Text = &amp;quot;Date&amp;quot;&lt;br /&gt;
        Me.columnHeader3.Width = 84&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;listView1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.listView1.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.columnHeader1, Me.columnHeader4, Me.columnHeader2, Me.columnHeader3})&lt;br /&gt;
        Me.listView1.Dock = System.Windows.Forms.DockStyle.Fill&lt;br /&gt;
        Me.listView1.Name = &amp;quot;listView1&amp;quot;&lt;br /&gt;
        Me.listView1.Size = New System.Drawing.Size(352, 266)&lt;br /&gt;
        Me.listView1.TabIndex = 1&lt;br /&gt;
        Me.listView1.View = System.Windows.Forms.View.Details&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;columnHeader1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.columnHeader1.Text = &amp;quot;Culture English Name&amp;quot;&lt;br /&gt;
        Me.columnHeader1.Width = 143&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;columnHeader4&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.columnHeader4.Text = &amp;quot;Name&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;columnHeader2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.columnHeader2.Text = &amp;quot;Currency&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(352, 266)&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.listView1})&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Localized Currencies and Dates&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;
        Dim amount As Double = 4.52&lt;br /&gt;
        Dim dateNow As DateTime = DateTime.Now&lt;br /&gt;
        Dim info As CultureInfo&lt;br /&gt;
        For Each info In CultureInfo.GetCultures(CultureTypes.AllCultures)&lt;br /&gt;
            Dim item As ListViewItem = listView1.Items.Add(info.EnglishName)&lt;br /&gt;
            item.SubItems.Add(info.Name)&lt;br /&gt;
            If Not info.IsNeutralCulture Then&lt;br /&gt;
                item.SubItems.Add(amount.ToString(&amp;quot;C&amp;quot;, info.NumberFormat))&lt;br /&gt;
                item.SubItems.Add(dateNow.ToString(&amp;quot;d&amp;quot;, info.DateTimeFormat))&lt;br /&gt;
            End If&lt;br /&gt;
        Next&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
           &lt;br /&gt;
         &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==String in Your Language==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt; &lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.ruponentModel&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.Configuration&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Globalization&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim myform As Form = New DigitSubstitutionForm()&lt;br /&gt;
        Application.Run(myform)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
Public Class DigitSubstitutionForm&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;DigitSubstitutionForm&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(292, 266)&lt;br /&gt;
        Me.Name = &amp;quot;DigitSubstitutionForm&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;DigitSubstitutionForm&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
&lt;br /&gt;
    Private Sub DigitSubstitutionForm_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint&lt;br /&gt;
        Dim g As Graphics = e.Graphics&lt;br /&gt;
        Dim digits As String = &amp;quot;0 1 2 3 4 5 6 7 8 9 0&amp;quot;&lt;br /&gt;
        Dim methods As StringDigitSubstitute() = {StringDigitSubstitute.None, StringDigitSubstitute.National, StringDigitSubstitute.Traditional, StringDigitSubstitute.User}&lt;br /&gt;
        Dim y As Single&lt;br /&gt;
        Dim culture As CultureInfo = New CultureInfo(&amp;quot;th-TH&amp;quot;)&lt;br /&gt;
        Dim format As StringFormat = New StringFormat()&lt;br /&gt;
        Dim method As StringDigitSubstitute&lt;br /&gt;
        For Each method In methods&lt;br /&gt;
            format.SetDigitSubstitution(culture.LCID, method)&lt;br /&gt;
            g.DrawString(method.ToString() &amp;amp; &amp;quot;: &amp;quot; &amp;amp; digits, Me.Font, Brushes.Black, 0, y, format)&lt;br /&gt;
            y = y + Me.Font.GetHeight(g)&lt;br /&gt;
        Next&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
           &lt;br /&gt;
         &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>