VB.NET中怎样把整型变量放入文件名中?(有代码)
想实现下面这段代码,但那个i直接放在文件名中就报告路径有误。PrivateSubTimer1_Tick(ByValsenderAsSystem.Object,ByVale...
想实现下面这段代码,但那个i直接放在文件名中就报告路径有误。
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim i As Integer
i = 1
For i = 1 To 9 Step 1
PictureBox1.Image = System.Drawing.Image.FromFile("C:\Users\管理员\Desktop\临时\000 (i)")
Next
End Sub 展开
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim i As Integer
i = 1
For i = 1 To 9 Step 1
PictureBox1.Image = System.Drawing.Image.FromFile("C:\Users\管理员\Desktop\临时\000 (i)")
Next
End Sub 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询