Hi @Fabrizio Leoncini ,
You can refer to the following code.
Add a new row to the TableLayoutPanel, then loop through each column and add a TextBox to each cell
Private Sub AddRowToTableLayoutPanel(tableLayoutPanel As TableLayoutPanel)
tableLayoutPanel.RowCount += 1
For colIndex As Integer = 0 To tableLayoutPanel.ColumnCount - 1
Dim textBox As New TextBox()
textBox.Dock = DockStyle.Fill
tableLayoutPanel.Controls.Add(textBox, colIndex, tableLayoutPanel.RowCount - 1)
Next
End Sub
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.