all groups > vb.net controls > october 2006 >
You're in the

vb.net controls

group:

Scrollbar event behavior


Scrollbar event behavior Robert Johnson
10/30/2006 4:44:17 PM
vb.net controls:
In VB6 there was a Scroll and a Change event. The Scroll event was triggered
continually as the scroll box was moved and the Change event did not trigger
until after the scroll box was released.

In .NET it appears that the change event was dropped and replaced with the
ValueChanged event which does not work the same way. Both ValueChanged and
Scroll are triggered continually as the scroll box is moved.

Is ther any way in .NET to get the same effect from a scoll bar as the VB6
Change event?

Re: Scrollbar event behavior Yuichiro Ochifuji
10/31/2006 12:00:00 AM
Hi,

Private Sub VScrollBar1_Scroll(...) Handles VScrollBar1.Scroll
Select Case e.Type
Case ScrollEventType.EndScroll
Debug.Write("scend" & vbCrLf)
End Select

End Sub


--
Yuichiro Ochifuji
JAPAN
Re: Scrollbar event behavior Robert Johnson
10/31/2006 8:24:20 AM
Code is perfect. I didn't even think of this approach. I was caught up in
the events. Thank you so much.

[quoted text, click to view]

AddThis Social Bookmark Button