11-12-15, 01:29 AM
السلام عليكم
Autoscroll Controls
TextBox autoscroll
كود :
textBox1.SelectionStart = textBox1.Text.Length;
textBox1.ScrollToCaret();ListBox autoscroll
كود :
listBox1.SelectedIndex = listBox1.Items.Count - 1;
listBox1.SelectedIndex = -1;ListView autoscroll
كود :
listView1.EnsureVisible(listView1.Items.Count - 1);TreeView autoscroll
كود :
treeView1.Nodes[treeView1.Nodes.Count - 1].EnsureVisible();DataGridView autoscroll
كود :
dataGridView1.FirstDisplayedCell =
dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells[0];
