TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
b b
NA
53
0
Mouse scroll with ListView
Dec 30 2009 4:49 AM
Hi everyone,
I have a listview, where vertical scrollbar is there. On mouse scroll records in the listview selected one by one. What i want
is that, once the last item selected in the listview mousce scrolling operation have to stop. how to do that.
i am using C# with windows form.
regards,
BB
Reply
Answers (
1
)
0
Farooq Azam
0
4
0
Dec 30 2009 5:17 AM
Add a SelectedIndexChanged event for the listView and use this code:
private void listView1_SelectedIndexChanged(object sender, EventArgs e)
{
if (listView1.Items[listView1.Items.Count - 1].Selected)
{
listView1.Scrollable = false;
}
else
listView1.Scrollable = true;
}
}
Thanks
Problem in DataBinding with two Combo box using c#
Treeview doesn't update after treenode.remove