I'm have a window application prog that's panel and text boxes appear in it when data send to it and when i have a lot of text boxes the auto scroll appear .
my problem every new text box that appear in the end of panel and i need to use scroll to see it , i need every new text box appear in the top of panel how i can do that .
my function for textBoxes creation

i++
j = j + 60

public string dev(String k)
{
textBox textbox = new textBox();
suspendlayout();
textbox.location =new system.Drawing.Point(3,3);
textbox.size = new size(207,59);
textbox.name = i.tostring();
textbox.tabindex = 1 ;
textbox.multiline = true ;
textbox.ReadOnly = true ;
textbox.text = k ;
controls.add(textbox);
resumelayout(false);
panel2.controls.add(textbox);
return textbox.text.tostring();
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.