Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to auto scroll down in WinForms ListView control when update new item?

How to auto scroll down in ListView control when update new item?

I have tried

listView1.Focus(); listView1.Items[listView1.Items.Count - 1].Selected = true; 

but this not working.

like image 229
monkey_boys Avatar asked Jan 06 '10 16:01

monkey_boys


1 Answers

Try

listView1.Items[listView1.Items.Count - 1].EnsureVisible(); 
like image 141
Codesleuth Avatar answered Oct 06 '22 01:10

Codesleuth