Professional Documents
Culture Documents
Add Button
TextBox3.Value = Val(TextBox1.Value) + Val(TextBox2.Value)
TextBox5.Value = Val(TextBox3.Value) - Val(TextBox4.Value)
Subtract Button
TextBox3.Value = Val(TextBox1.Value) - Val(TextBox2.Value)
TextBox5.Value = Val(TextBox3.Value) - Val(TextBox4.Value)
Multiply Button
TextBox3.Value = Val(TextBox1.Value) * Val(TextBox2.Value)
TextBox5.Value = Val(TextBox3.Value) - Val(TextBox4.Value)
Divide Button
TextBox3.Value = Val(TextBox1.Value) / Val(TextBox2.Value)
TextBox5.Value = Val(TextBox3.Value) - Val(TextBox4.Value)
Percentage Button
TextBox6.Value = Val(TextBox3.Value) * Val(TextBox4.Value) / 100
TextBox5.Value = Val(TextBox3.Value) - Val(TextBox6.Value)
Calculate Button (Add only if you do not want to do same coding in percentage
button textbox5 code, otherwise use it there straight way).
TextBox5.Value = Val(TextBox3.Value) - Val(TextBox6.Value)
Reset Button
Unload Me
Cal_form.Show
Close Button
Unload Me