Convert Currency Indian Rupees into Words V1.0
Submitted By:
GeniousBM
Rating:





(
Rate It)
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
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.
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Amount As System.Windows.Forms.TextBox
Friend WithEvents Convertbtn As System.Windows.Forms.Button
Friend WithEvents txtRsToWords As System.Windows.Forms.TextBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.GroupBox1 = New System.Windows.Forms.GroupBox()
Me.Convertbtn = New System.Windows.Forms.Button()
Me.txtRsToWords = New System.Windows.Forms.TextBox()
Me.Amount = New System.Windows.Forms.TextBox()
Me.Label2 = New System.Windows.Forms.Label()
Me.Label1 = New System.Windows.Forms.Label()
Me.Label3 = New System.Windows.Forms.Label()
Me.GroupBox1.SuspendLayout()
Me.SuspendLayout()
'
'GroupBox1
'
Me.GroupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.Convertbtn, Me.txtRsToWords, Me.Amount, Me.Label2, Me.Label1})
Me.GroupBox1.Location = New System.Drawing.Point(16, 13)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(632, 163)
Me.GroupBox1.TabIndex = 0
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "Example"
'
'Convertbtn
'
Me.Convertbtn.Location = New System.Drawing.Point(236, 64)
Me.Convertbtn.Name = "Convertbtn"
Me.Convertbtn.Size = New System.Drawing.Size(160, 23)
Me.Convertbtn.TabIndex = 4
Me.Convertbtn.Text = "Click Me to Convert"
'
'txtRsToWords
'
Me.txtRsToWords.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.txtRsToWords.ForeColor = System.Drawing.Color.IndianRed
Me.txtRsToWords.Location = New System.Drawing.Point(16, 128)
Me.txtRsToWords.Name = "txtRsToWords"
Me.txtRsToWords.Size = New System.Drawing.Size(600, 20)
Me.txtRsToWords.TabIndex = 3
Me.txtRsToWords.Text = ""
Me.txtRsToWords.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
'
'Amount
'
Me.Amount.ForeColor = System.Drawing.Color.Blue
Me.Amount.Location = New System.Drawing.Point(333, 29)
Me.Amount.Name = "Amount"
Me.Amount.Size = New System.Drawing.Size(110, 20)
Me.Amount.TabIndex = 2
Me.Amount.Text = ""
Me.Amount.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
'
'Label2
'
Me.Label2.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label2.ForeColor = System.Drawing.Color.IndianRed
Me.Label2.Location = New System.Drawing.Point(253, 104)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(126, 16)
Me.Label2.TabIndex = 1
Me.Label2.Text = "Rupees into Words"
'
'Label1
'
Me.Label1.ForeColor = System.Drawing.Color.Blue
Me.Label1.Location = New System.Drawing.Point(189, 32)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(142, 16)
Me.Label1.TabIndex = 0
Me.Label1.Text = "Indian Rupees (INR) Rs."
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(172, 184)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(320, 16)
Me.Label3.TabIndex = 1
Me.Label3.Text = "Software Developer : Bharat Modha (Porbandar-Gujarat-India)"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.Color.Tan
Me.ClientSize = New System.Drawing.Size(664, 214)
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Label3, Me.GroupBox1})
Me.Name = "Form1"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "Conversion Rupees To Words"
Me.TopMost = True
Me.GroupBox1.ResumeLayout(False)
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub Convertbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Convertbtn.Click
If Val(Amount.Text) > 0 Then
txtRsToWords.Text = RupeesToWord(Val(Amount.Text))
Else
MessageBox.Show("Please enter any amount")
End If
End Sub
End Class