在 vb.net 中单击按钮时更改文本框的位置
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17937101/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 17:03:02 来源:igfitidea点击:
Change Location of Textbox when a button gets click in vb.net
提问by shaik ibrahim
Hi i have a button i want to change the location of the textbox can anyone tell me how. I tried the tb location thing that has been commented below but it still dosent work .
嗨,我有一个按钮,我想更改文本框的位置,谁能告诉我怎么做。我尝试了下面评论的 tb location 东西,但它仍然不起作用。
code is here
代码在这里
Private Sub ExpandBtn_Click(sender As Object, e As EventArgs) Handles ExpandBtn.Click
expandMenu.Visible = False
Me.Height = 345
Me.Width = 820
'nameTB.location = (480 , 100)
grdDataGrid.Visible = True
'expand it to a certain size
End Sub
回答by matzone
Maybe you need this ...
也许你需要这个...
nameTB.location = New Point(480 , 100)