点击窗口中按钮让窗口的高度变化,但位置不变,怎么办 Post By:2015/7/28 18:39:00 [显示全部帖子]
Dim x As Integer = Sysinfo.screenwidth/2 - e.Form.width/2 Dim y As Integer = Sysinfo.screenheight/2 - 168/2
If e.Sender.Checked Then e.Form.SetBounds(x, y, e.Form.width, 480) e.Form.Controls("add").Enabled = True Else e.Form.SetBounds(x, y, e.Form.width, 168) e.Form.Controls("add").Enabled = False End If