By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,528 Members | 963 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,528 IT Pros & Developers. It's quick & easy.

How to raise the ValueChanged event only when move the track bar manually?

P: n/a
Hello,
I want to raise the ValueChanged event ONLY when i move the track bar
manually, but not the value changed, how to do in the event below? thank you

Private Sub TrackBar1_ValueChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TrackBar1.ValueChanged
End Sub

Sep 10 '08 #1
Share this Question
Share on Google+
2 Replies

P: n/a
On Sep 10, 2:10*pm, "Steven" <ga...@163.comwrote:
Hello,
I want to raise the ValueChanged event ONLY when i move the track bar
manually, but not the value changed, how to do in the event below? thank you

Private Sub TrackBar1_ValueChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TrackBar1.ValueChanged
End Sub
Then you need to handle "Scroll" event instead of "ValueChanged" event
which is raised when either a mouse or keyboard action moves the
scroll box.

http://msdn.microsoft.com/en-us/libr...ar.scroll.aspx

Hope this helps,

Onur Güzel

Sep 10 '08 #2

P: n/a
Thank you.

"kimiraikkonen" wrote:
On Sep 10, 2:10 pm, "Steven" <ga...@163.comwrote:
Hello,
I want to raise the ValueChanged event ONLY when i move the track bar
manually, but not the value changed, how to do in the event below? thank you

Private Sub TrackBar1_ValueChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TrackBar1.ValueChanged
End Sub

Then you need to handle "Scroll" event instead of "ValueChanged" event
which is raised when either a mouse or keyboard action moves the
scroll box.

http://msdn.microsoft.com/en-us/libr...ar.scroll.aspx

Hope this helps,

Onur Güzel

Sep 10 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.