Programming/C#

ListBox, ListView, TextBox 의 자동스크롤 (Auto Scroll)

역시인생한방 2016. 1. 6. 15:25

* ListBox

  - listBox1.TopIndex = listBox1.Items.Count - 1;


* ListView

  - listView1.Items[listView1.Items.Count -1].EnsureVisible();


* TextBox

  - tbMessage.SelectionStart = tbMessage.Text.Length;

  - tbMessage.ScrollToCaret();


출처 : http://cafe.naver.com/mycscafe/1241