MSChart 鼠标 移动上去,咋显示 X,Y 轴的值
问题快解决了
一个小问题。。
Dim xS, L As Single
xS = x / 15: L = MSChart1.Left / 15
'x是鼠标的横坐标
Text1.Text = format(xS - L,"0.00")
为什么小数点后面是00,不可能整除的哦
[解决办法]
因为屏幕坐标是 0-1024 都是整数
再乘以15,除以15,还是整数
[解决办法]
Dim xS, L As Single
==>
Dim xS as single, L As Single