13150. LongScroll
- Have you always cursed VB's limit of Integer values for a scrollbar's Value, Min, Max, and *Change properties? Me too. I wrote a class that mapped Long values into these properties for Visual Basic 4 How-To and have now updated it for use with VB5 (or later). The addition of WithEvents allows this to truly be a drop-in class, with no need for the client to notify it on user-interaction. Definitely one you'll want for your toolbox!
你总是抱怨VB中的滚动条的Value, Min, Max, 和 *Change属性只使用Integer 值吗?我也是。我写了一个类,可以将Long 型值映射到这些属性,相关代码已经从Visual Basic 4升级到了VB5(或更高版本)。额外的WithEvents 可以让这个控件真正成为一个可以立即使用的类,不需要客户在用户界面中再通知它。这确实是你在工具箱需要的一个控件!
来源: http://www.mvps.org/vb/ |