Click here to Skip to main content
15,891,644 members
Articles / Programming Languages / Visual Basic

Convert numbers to words in English and Asian format

Rate me:
Please Sign up or sign in to vote.
4.97/5 (22 votes)
3 Jan 2012CPOL4 min read 91.6K   5.7K   33  
Convert number to readable words
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
  Inherits System.Windows.Forms.Form

  'Form overrides dispose to clean up the component list.
  <System.Diagnostics.DebuggerNonUserCode()> _
  Protected Overrides Sub Dispose(ByVal disposing As Boolean)
    Try
      If disposing AndAlso components IsNot Nothing Then
        components.Dispose()
      End If
    Finally
      MyBase.Dispose(disposing)
    End Try
  End Sub

  'Required by the Windows Form Designer
  Private components As System.ComponentModel.IContainer

  'NOTE: The following procedure is required by the Windows Form Designer
  'It can be modified using the Windows Form Designer.  
  'Do not modify it using the code editor.
  <System.Diagnostics.DebuggerStepThrough()> _
  Private Sub InitializeComponent()
    Me.TextBox1 = New System.Windows.Forms.TextBox()
    Me.RichTextBox1 = New System.Windows.Forms.RichTextBox()
    Me.Label1 = New System.Windows.Forms.Label()
    Me.Label2 = New System.Windows.Forms.Label()
    Me.RichTextBox2 = New System.Windows.Forms.RichTextBox()
    Me.SuspendLayout()
    '
    'TextBox1
    '
    Me.TextBox1.Location = New System.Drawing.Point(12, 12)
    Me.TextBox1.Name = "TextBox1"
    Me.TextBox1.Size = New System.Drawing.Size(558, 20)
    Me.TextBox1.TabIndex = 0
    '
    'RichTextBox1
    '
    Me.RichTextBox1.BackColor = System.Drawing.Color.LemonChiffon
    Me.RichTextBox1.Location = New System.Drawing.Point(12, 57)
    Me.RichTextBox1.Name = "RichTextBox1"
    Me.RichTextBox1.ReadOnly = True
    Me.RichTextBox1.Size = New System.Drawing.Size(558, 52)
    Me.RichTextBox1.TabIndex = 1
    Me.RichTextBox1.Text = ""
    '
    'Label1
    '
    Me.Label1.AutoSize = True
    Me.Label1.Location = New System.Drawing.Point(12, 41)
    Me.Label1.Name = "Label1"
    Me.Label1.Size = New System.Drawing.Size(85, 13)
    Me.Label1.TabIndex = 2
    Me.Label1.Text = "English US Style"
    '
    'Label2
    '
    Me.Label2.AutoSize = True
    Me.Label2.Location = New System.Drawing.Point(12, 118)
    Me.Label2.Name = "Label2"
    Me.Label2.Size = New System.Drawing.Size(85, 13)
    Me.Label2.TabIndex = 2
    Me.Label2.Text = "English UK Style"
    '
    'RichTextBox2
    '
    Me.RichTextBox2.BackColor = System.Drawing.Color.LemonChiffon
    Me.RichTextBox2.Location = New System.Drawing.Point(12, 134)
    Me.RichTextBox2.Name = "RichTextBox2"
    Me.RichTextBox2.ReadOnly = True
    Me.RichTextBox2.Size = New System.Drawing.Size(558, 59)
    Me.RichTextBox2.TabIndex = 1
    Me.RichTextBox2.Text = ""
    '
    'Form1
    '
    Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
    Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
    Me.ClientSize = New System.Drawing.Size(582, 209)
    Me.Controls.Add(Me.Label2)
    Me.Controls.Add(Me.Label1)
    Me.Controls.Add(Me.RichTextBox2)
    Me.Controls.Add(Me.RichTextBox1)
    Me.Controls.Add(Me.TextBox1)
    Me.Name = "Form1"
    Me.Text = "Form1"
    Me.ResumeLayout(False)
    Me.PerformLayout()

  End Sub
  Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
  Friend WithEvents RichTextBox1 As System.Windows.Forms.RichTextBox
  Friend WithEvents Label1 As System.Windows.Forms.Label
  Friend WithEvents Label2 As System.Windows.Forms.Label
  Friend WithEvents RichTextBox2 As System.Windows.Forms.RichTextBox

End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer
Nepal Nepal
I am not a programer but like to monkey around with the codes. I started with Excel VBA then jumped to VB.NET and spending my time at home with codes. CodeProject helped me a lot to learn and I am always thankful to all the individuals to make this happen.

Grow upwards and onwards!

Comments and Discussions