This code shows how to create a inch ruler with a position line showing the x or the cursors horizontal position. It also has code that resizes ruler the when the form is resized.
来源: http://www.freevbcode.com/ShowCode.Asp?ID=751
这个代码展示了如何生成一个英寸刻度的标尺,带有一个位置线条显示了x或者水平指针的位置。它也包括了在重设窗体时调整标尺的代码。