Visual Basic 2005 Tutorial 2: Make your own CalculatorHow to make your own Calculator. Code: Button1: Label1.Text = "+" TextBox3.Text = Val(TextBox1.Text) + Val(TextBox2.Text) Button2: Label1.Text = "-" TextBox3.Text = Val(TextBox1.Text) + Val(TextBox2.Text) Button 3: Label1.Text = "x" TextBox3.Text = Val(TextBox1.Text) * Val(TextBox2.Text) Button4: Label1.Text = ":" TextBox3.Text = Val(TextBox1.Text) / Val(TextBox2.Text) ©2009 STP - All Rights Reserved code pour embarquer la vidéo : >>> http://www.youtube.com/embed/T3TaI2i6Ums <<< |