rt

解决方案 »

  1.   

    http://community.csdn.net/Expert/topic/3338/3338216.xml?temp=.7401239
      

  2.   

    screen.Width 宽
    screen.Height 高
      

  3.   

    Private Sub Command1_Click()
    Print "屏幕宽度="; Screen.Width
    Print "屏幕高度="; Screen.Height
    End Sub
      

  4.   

    text1.text=screen.Width 
    text2.text=screen.Height
      

  5.   

    的确,screen.width 和 screen.height 可以返回屏幕的大小,但它们返回的单位总是缇,通常我们需要返回的单位为像素,因此应:screen.Width / screen.TwipsPerPixelX
    screen.Height / screen.TwipsPerPixelY
      

  6.   

    screen.Width / screen.TwipsPerPixelX
    screen.Height / screen.TwipsPerPixelY
    好,經典.
      

  7.   

    Private Sub Command1_Click()
    Print "屏幕宽度="; screen.Width / screen.TwipsPerPixelX
    Print "屏幕高度="; screen.Height / screen.TwipsPerPixelY
    Print "屏幕宽度="; Screen.Width
    Print "屏幕高度="; Screen.Height
    End Sub
    是啊,你看看要用什么单位显示,哈哈,大家回答的都特别经典