باسلام
آیا تابع خاصی رو برای بدست آوردن Resulation صفحه نمایش سراغ دارین؟
باسلام
آیا تابع خاصی رو برای بدست آوردن Resulation صفحه نمایش سراغ دارین؟
عرض صفحه:
Screen.Width / Screen.TwipsPerPixelX
طول صفحه:
Screen.Height / Screen.TwipsPerPixelY
این کدها رو تو یه دکمه کپی کنید:
Dim intWidth As Integer
Dim intHeight As Integer
intWidth = Screen.Width \ Screen.TwipsPerPixelX
intHeight = Screen.Height \ Screen.TwipsPerPixelY
MsgBox "Screen Resolution:" + vbCrLf + vbCrLf + Str$(intWidth) + " x" + Str$(intHeight), 64, "Info"