' This is used to set X-coordinate of dynamic TextBox Dim LocXPosition As Integer = 20 ' This is used to set Y-coordinate of dynamic TextBox Dim LocYPosition As Integer = 20 ' This will create dynamic TextBox... Dim LocTextBox As New TextBox ' We need to set Location of the Point, At this point TextBox's X and Y coordinate will start... LocTextBox.Location = New Point(20, 20) ' We need to set container of the control... Me.Controls.Add(LocTextBox)