vb题目,如图求解

2024-11-30 14:49:05
推荐回答(1个)
回答1:

一)DimfxAsIntegerPrivateSubForm_Load()Label1.Caption="VisualBasic教学"Label1.FontSize=16Label1.FontBold=TrueLabel1.ForeColor=vbRedLabel1.BackColor=vbBlackForm1.BackColor=vbBlackTimer1.Interval=40fx=1EndSubPrivateSubTimer1_Timer()IfLabel1.Left+Label1.Width>=Form1.WidthThenfx=-1IfLabel1.Left=Form1.WidthThenImage1.Left=-Image1.WidthImage1.Left=Image1.Left+150EndSub