UI : autoscroll

[textbox]
textBox1.SelectionStart = textBox1.Text.Length;
textBox1.ScrollToCaret();

[rich textbox]
richTextBox1s.SelectionStart = richTextBox1.Text.Length; richTextBox1.ScrollToCaret();
[listbox]
listBox1.SelectedIndex = listBox1.Items.Count - 1; listBox1.SelectedIndex = -1;
[listview]
listView1.EnsureVisible(listView1.Items.Count - 1);
[treeview]
treeView1.Nodes[treeView1.Nodes.Count - 1].EnsureVisible();
[datagrid]
dataGridView1.FirstDisplayedCell = dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells[0];