我有以下代码,它适用于倒数计时器
Dim countdown As Integer = SharpTextBox6.Text
Label1.Text = "Sending to " + "" + SharpTextBox4.Text + "" + "For" + countdown.ToString - 1
问题是它说“从字符串的对话”值...“加倍无效。为什么它会转换为加倍?以及我如何解决这个问题
答案 0 :(得分:1)
你可以试试这个:
Label1.Text = "Sending to " + SharpTextBox4.Text + "For" + (countdown - 1).ToString
答案 1 :(得分:1)
Label1.Text = "Sending to " & SharpTextBox4.Text & " For " & (countdown - 1)