ListView ScrollBar
-
Hello, My Form has a listView control, that is acting as a message window. Messages are appended to the listView. I would like the scrollbar knob to stay positioned at the bottom of the vertical scrollbar. How can I do it? Regards, Zishan
-
Hello, My Form has a listView control, that is acting as a message window. Messages are appended to the listView. I would like the scrollbar knob to stay positioned at the bottom of the vertical scrollbar. How can I do it? Regards, Zishan
This code blcok will help you to get the visibility of last item in your listview control. And if nessasary it will scroll upto the end.
if(listView1.Scrollable) listView1.Items[listView1.Items.Count-1].EnsureVisible();
;) Sreejith Nair [ My Articles ] -
This code blcok will help you to get the visibility of last item in your listview control. And if nessasary it will scroll upto the end.
if(listView1.Scrollable) listView1.Items[listView1.Items.Count-1].EnsureVisible();
;) Sreejith Nair [ My Articles ]Thanks a lot.. this solved my problem Best regards, Zishan