如何在VB中对窗体内容居中显示
来源:百度知道 编辑:UC知道 时间:2024/05/24 09:27:22
Dim XO as Long
Dim YO as Long
XO = Screen.Width
YO = Screen.Height
XO = (XO - Me.Width) / 2
YO = (YO - Me.Height) / 2
Me.Move XO, YO
如果是控件的话可以调节它的alignment属性为2-center,
如果是form内容的话我就不知道了
UC知道是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度知道 编辑:UC知道 时间:2024/05/24 09:27:22
Dim XO as Long
Dim YO as Long
XO = Screen.Width
YO = Screen.Height
XO = (XO - Me.Width) / 2
YO = (YO - Me.Height) / 2
Me.Move XO, YO
如果是控件的话可以调节它的alignment属性为2-center,
如果是form内容的话我就不知道了