我尝试了下面粘贴的代码,但它似乎在 vb.net 中不起作用。但是,这只会创建一个文本框,而不是我想要的位置。我的目标是在各自的标签下创建 5 个文本框。然后会有一个按钮,它将接收来自文本框的所有文本输入并在网格视图中显示它。
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
Dim num As Integer
Dim pos As Integer
Dim intcount As Integer
For intcount = 0 To num() - 1
Next
Txtdynamic = New TextBox
Txtdynamic.Width = 20
Txtdynamic.Visible = True
Txtdynamic.MaxLength = 1
Txtdynamic.Location = New Point(pos() + 5, 0)
pos = pos() + 30
End Sub
This is how my buttons with the labels look like:
<p>
<asp:Button ID="Button4" runat="server" Text="Add Member" />
<asp:Button ID="Button5" runat="server" Text="Add Joint" />
<asp:Button ID="Button6" runat="server" Text="Edit Member" />
<asp:Button ID="Button7" runat="server" Text="Edit Joint" />
<asp:Button ID="Button8" runat="server" Text="See Joint Coordinate" />
<asp:Button ID="Button9" runat="server" Text="See Member Coordinate" />
</p>
Joint # Coordinates B.C Joint Loads Settlements Joint Rotation<p>