VB.net获取屏幕分辨率

前端之家收集整理的这篇文章主要介绍了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)
原文链接:https://www.f2er.com/vb/259968.html

猜你在找的VB相关文章