how do i make my panel scroll automatically to the latestest content.. My panel starts with showing the data on top and then the new data comes down and down and then scroll bar shows up which keeps getting bigger but i can't see my new data without scrolling. How can i make scrollbar autoscroll to the latest data
thx
Sameep

scroll to bottom
Kamii47
Buck Hodges
davehomebrew
Mikhail.
DTHMTLGOD
look to this it may help you
http://www.codeproject.com/cs/miscctrl/CustomAutoScrollPanel.asp
Boulderdude
textBox1.Select(textBox1.TextLength, 0);
textBox1.ScrollToCaret();
DavidLong
This is precisely what I am wanting to do, but I can't get your code to work.
My code fragment is included below.
What I want is for the textbox to contain the reams of info (don't know if it matters but includes newlines) stored in my arrayofoptions object - but to display only the final 3 lines or so (but in such a way that if anyone wants to scroll up they can). Any help greatfully received. Thanks
Dim pretext As TextBox = New TextBox()pretext.Location =
New System.Drawing.Point(5, 10)pretext.Size =
New System.Drawing.Size(510, 50)pretext.ReadOnly =
Truepretext.Multiline =
Truepretext.ScrollBars() = System.Windows.Forms.ScrollBars.Vertical
pretext.Text = arrayofoptions(whichquestionimon).PreContext
pretext.BorderStyle = BorderStyle.None
pretext.Select(pretext.TextLength, 0)
pretext.ScrollToCaret()
groupBox1.Controls.Add(pretext)
MagedSalah
If the content are individual controls then you can use these 2 methods to bring the control to view.
mycontrol.BringToFront() // selects the control
mypanel.ScrollControlIntoView(mycontrol) // scrolls to the control