Visual Studio 2013 - VB - Calculator Tutorial

preview_player
Показать описание
Visual Studio 2013 - VB - Calculator Tutorial (open source)

Codes:

Every Number Button:
TextBox1.Text = TextBox1.Text & "x"

C: TextBox1.Clear()

Under Public Class:

Dim FirstNumber As Single
Dim SecondNumber AS Single
Dim AnswerNumber As Single
Dim ArithemeticProcess As String

+: FirstNumber = Val(TextBox1.Text)
TextBox1.Text = "0"
ArithemeticProcess = "+"

-: ""

x:""

/:""

=:
SecondNumber = Val(TextBox1.Text)
If ArithemeticProcess = "+" Then
AnswerNumber = FirstNumber + SecondNumber
End If

""-
""*
""/
TextBox1.Text = AnswerNumber
Рекомендации по теме
Комментарии
Автор

Thank you a lot, you helped me to get a high grade! God bless you

notiamkylie
Автор

To add percentage. Add a new button, then declare Dim myPercent As String just below the Dim ArithmeticProcess As String on line 6, double click the percentage button and add myPercent = TextBox1.Text / TextBox1.Text * 100 in the Sub.

davidjsteele
Автор

thanks for sharing this tutorial . its very amazing and helpful video

muhammadzafar
Автор

Thank you for this video it really help for me in our subject

IamRawdaP
Автор

You're better than our instructor, hahaha

jiro_hartts
Автор

Thank you so much you helped me for my assignment

zazuhbk
Автор

Visual Studio 2013 - VB - Calculator Totorial

EyalGeulayevEG