WinForms - Dynamically Add Multiline Textboxes to Panel with Horizontal Scrollbars -
I have been given a design that I have to reproduce in Winforms. My attempt is shown below ...
At the moment I have 5 static labels and 5 static multi-lingual text boxes, which my list belongs to "items" ...
But, able to cope with more than 5 columns should be there .. .
If Winforms is not being experienced extensively, what would be the best way to add extra columns with horizontal scrollbar to enable the user to scroll from left to right?
I was thinking that maybe a panel, which is set for scrollbar auto, and then dynamically add headings and text boxes to the calculation status?
Is this possible? Is this the best way?
Any help would be greatly appreciated.
Thank you
Yes, it looks like this ... < / P>
This code works as a test ...
Integer number = 0; Int location x = 169; While (number & lt; 10) {// Create a new multilingual text box textbox trev = new TextBox (); Trev.size = txtParent1.Size; Trev.Location = New point () {X = txtParent1.Location.X + location X, Y = txtParent1.Location.Y}; Trev.Name = number.ToString (); PanelSummary.Controls.Add (Trev); Number = number + 1; Place X + = 16 9; }
Comments
Post a Comment