您好,我正在使用 Visual Basic 2005 为我的论文做一些事情,我希望 for 显示在文本框下方,但我可以使用绘图点获取文本框的确切位置。
这是我现在的代码:
Dim x As Integer = Me.txtStockQUnit.Location.X + Me.Location.X + Me.grpMonitoring.Location.X
Dim y As Integer = Me.txtStockQUnit.Height + Me.txtStockQUnit.Location.Y + Me.Location.Y + Me.grpMonitoring.Location.Y
My.Forms.frmQuantityUnitDropListGrid.Location = New Point(x, y)
My.Forms.frmQuantityUnitDropListGrid.ShowDialog()