In this tutorial I wrote this program to ask the user to give Philippine Peso value and convert it to other currencies like hongkong dollar, uae derham, us dollar, and japanese yen using Visual Basic NET.
I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.
Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com
If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.
Your support on my channel is highly appreciated.
Thank you very much.
Program Listing
Public Class Form1
' Philippine Peso to other currencies in Visual Basic NET
' Author : Jake Rodriguez Pomperada, MAED-IT, MIT
' www.jakerpomperada.blogspot.com
' www.jakerpomperada.com
' jakerpomperada@gmail.com
' Bacolod City, Negros Occidental, Philippines
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim hk_dollar1, uae_dirham1, us_dollar1, jpn_yen1 As Decimal
If (php_peso.Text = "") Then
MessageBox.Show("Cannot Be Empty", "Reminder",
MessageBoxButtons.OK, MessageBoxIcon.Error)
php_peso.Focus()
Else
hk_dollar1 = Math.Round(Val(php_peso.Text) * 0.16137, 7)
uae_dirham1 = Math.Round(Val(php_peso.Text) * 0.07646, 7)
us_dollar1 = Math.Round(Val(php_peso.Text) * 0.02081, 7)
jpn_yen1 = Math.Round(Val(php_peso.Text) * 2.1612, 7)
hk_dollar.Text = hk_dollar1
uae_dirham.Text = uae_dirham1
us_dollar.Text = us_dollar1
jpn_yen.Text = jpn_yen1
End If
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
php_peso.Text = ""
hk_dollar.Text = ""
uae_dirham.Text = ""
us_dollar.Text = ""
jpn_yen.Text = ""
php_peso.Focus()
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
End
End Sub
End Class