Visual Studio 2010的加法运算问题 10
我用VS2010中的VB做了一个加法计算器,但是我用了这个代码时:PrivateSubButton1_Click(ByValsenderAsSystem.Object,B...
我用VS2010中的VB做了一个加法计算器,但是我用了这个代码时:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = (TextBox1.Text) & (TextBox2.Text)
End Sub
出现了类似于1+1=11的问题 如图
上面的是错的 应该是
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = (TextBox1.Text) + (TextBox2.Text)
End Sub 展开
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = (TextBox1.Text) & (TextBox2.Text)
End Sub
出现了类似于1+1=11的问题 如图
上面的是错的 应该是
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = (TextBox1.Text) + (TextBox2.Text)
End Sub 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询