怎么知道屏幕的大小?? rt 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://community.csdn.net/Expert/topic/3338/3338216.xml?temp=.7401239 screen.Width 宽screen.Height 高 Private Sub Command1_Click()Print "屏幕宽度="; Screen.WidthPrint "屏幕高度="; Screen.HeightEnd Sub text1.text=screen.Width text2.text=screen.Height 的确,screen.width 和 screen.height 可以返回屏幕的大小,但它们返回的单位总是缇,通常我们需要返回的单位为像素,因此应:screen.Width / screen.TwipsPerPixelXscreen.Height / screen.TwipsPerPixelY screen.Width / screen.TwipsPerPixelXscreen.Height / screen.TwipsPerPixelY好,經典. Private Sub Command1_Click()Print "屏幕宽度="; screen.Width / screen.TwipsPerPixelXPrint "屏幕高度="; screen.Height / screen.TwipsPerPixelYPrint "屏幕宽度="; Screen.WidthPrint "屏幕高度="; Screen.HeightEnd Sub是啊,你看看要用什么单位显示,哈哈,大家回答的都特别经典 如何用VB编一个应用程序,实现从服务器数据库中把A表导入到客户端同样的A表? 初学vb,但是这个问题都好难 结果集 有一个健身房的管理程序,谁用兴趣做。 有没有人试过用ShellExecute发送带附件的邮件? 有谁知道powerpoint的vba编程呀 如何用SENDKEYS模拟ALT+CTRL+W? 我是菜鸟,想知道IIF()函数的意思 如何判断窗体上的某个控件是属于控件数组呢? 用 Int((100000 * Rnd) + 1) 得到的随机数为什么总上不了90000? DTpicker在哪引用? 制作cab文件可以设置里面的.ocx文件的注册顺序吗???
screen.Height 高
Print "屏幕宽度="; Screen.Width
Print "屏幕高度="; Screen.Height
End Sub
text2.text=screen.Height
screen.Height / screen.TwipsPerPixelY
screen.Height / screen.TwipsPerPixelY
好,經典.
Print "屏幕宽度="; screen.Width / screen.TwipsPerPixelX
Print "屏幕高度="; screen.Height / screen.TwipsPerPixelY
Print "屏幕宽度="; Screen.Width
Print "屏幕高度="; Screen.Height
End Sub
是啊,你看看要用什么单位显示,哈哈,大家回答的都特别经典