[求助]居然'编程爱号者'论坛的朋友都不会做的题目,有那么难吗?
首先我在EXCEL里取数据 例如:Do While AppExcel.Worksheets(1).Cells(k, 1) <> Empty & AppExcel.Worksheets(1).Cells(k, 2) <> Empty '遍历Excel的条件语句
temp1 = AppExcel.Worksheets(1).Cells(k, 1)
temp2 = AppExcel.Worksheets(1).Cells(k, 2)
随后我在PICBOX里画2条直线,实现双移动:
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Line1.X1 = X
Line1.X2 = X
Line1.Y1 = 0
Line1.Y2 = Height
Line2.X1 = 0
Line2.X2 = Width
Line2.Y1 = Y
Line2.Y2 = Y
End Sub
要实现的效果,在PICBOX里任意移动,当移动到EXCEL里取的点时,2条直线变色(随便什么色) 最好做到在2条直线的交叉点旁显示(XXX,YYY)坐标!
高手们帮帮小女的忙,我是初学者,貌似看起来不是很难!居然那个论坛一个都不会~!