前端之家收集整理的这篇文章主要介绍了
VB.net获取屏幕分辨率,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
- '获取屏幕分辨率
- Dim x,y As Long
- x = Screen.PrimaryScreen.Bounds.Width.ToString
- y = Screen.PrimaryScreen.Bounds.Height.ToString
- '获取窗体位置
- x = Me.Location.X.ToString()
- y = Me.Location.Y.ToString()
- '设置窗体位置
- Me.SetDesktopLocation(80,80)