如何只移动窗体水平?我在左上角Dim scr = Screen.FromPoint(Me.Location)
Me.Location = New Point(0, scr.WorkingArea.Top)
MyBase.OnLoad(e)
做了位置但是我想重新制作它以便能够只移动表格。
答案 0 :(得分:-1)
水平移动表单:
Me.Left += 50
或者,与您展示的方式相同:
Me.Location = New Point(Me.Location.X + 50, Me.Location.Y)
为了防止用户垂直/水平移动形式(如果是你要问的,我不清楚)你可以看一下:Move form only vertically