vb小白求纠错
vb吧
全部回复
仅看楼主
level 1
mmpmmp52 楼主
Public Function changcolor()
Label1.BackColor = RGB(red() * 255, green() * 255, blue() * 255)
End Function
Public Function color(a As Integer, e As Integer, c As Integer)
Label1.BackColor = RGB(a, e, c)
End Function
Private Sub Timer1_Timer(index As Integer)
Call shuip
Call cz
End Sub
Public Function cz()
Dim chuizhi#
chuizhi = Label1.Height + Label1.Top
If chuizhi >= Form1.ScaleHeight Then
Label1.Top = Label1.Top - 100
chuizhi = 1
Call changcolor
ElseIf Label1.Top <= 0 Then
Label1.Top = Label1.Top + 100
chuizhi = 0
Call changcolor
ElseIf (chuizhi < Form1.ScaleWidth) And chuizhi = 0 Then
Label1.Top = Label1.Top + 100
ElseIf (chuizhi < Form1.ScaleWidth) And chuizhi = 1 Then
Label1.Top = Label1.Top - 100
End If
End Function
2020年12月16日 18点12分 1
level 1
mmpmmp52 楼主
call shuip我确实不知道怎么回事
2020年12月16日 18点12分 2
level 13
shuip是个函数,你程序中没有定义这个函数,调用怎么可能成功,或者功能有只是函数名打错了,这个得你自己查错
2020年12月17日 01点12分 3
多谢指教
2021年01月04日 10点01分
吧务
level 15
你得先告诉VB shuip是什么东西
2020年12月17日 13点12分 5
多谢指教
2021年01月04日 10点01分
1