C#.net, I went to listView1's event section and can't find the slider event pull up, pull down ?
Loading
C#.net, I went to listView1's event section and can't find the slider event pull up, pull down ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dong Lam TrienPosted Jul 4, 2023, 8:02 AM
The events related to the listView you mentioned I have tried, I need the drag and drop end event of the slider to adjust the blue 'V' tick but not the TrackBar because the TrackBar only function is slider bar, TrackBar has no icon and text,... you see my video clip below: https://www.mediafire.com/file/y4hmsu79es2f71i/ListViewSroll.swf/file when dragging the slider down the green 'V' tick does not stick to the billiards icon.
Also I also tried protected override void WndProc(ref Message m) but didn't catch the end event of drag and drop listView WM_VSCROLL and WM_HSCROLL encoding is not correct ?
Deepak RawatPosted Jul 4, 2023, 5:17 AM
ListView control does not have specific events for slider actions such as "pull up" or "pull down." The ListView control is primarily used to display a collection of items in a list or grid format.
However, you can handle other events related to the ListView control that might be useful for your purposes. Some common events that you can handle for a ListView control include:
SelectedIndexChanged: This event occurs when the selected item(s) in the ListView control change.ItemSelectionChanged: This event is similar toSelectedIndexChangedand occurs when the selection state of an item changes.ColumnClick: This event occurs when a column header in the ListView control is clicked.MouseDoubleClick: This event occurs when the user double-clicks an item in the ListView control.If you are looking for specific slider-related functionality, you might want to consider using a different control, such as a TrackBar or a Slider, which have built-in events for slider actions like sliding up and down. These controls are specifically designed for handling slider-like interactions.