如何检测显示类型? [英] How to detect display type?

查看:89
本文介绍了如何检测显示类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想检测用户显示类型,LCD或CRT,怎么办?


谢谢

解决方案

你好yxq,


大多数Herfried直接知道这种事情,但我看到他已经迟到了>
昨天在这个新闻组中忙碌,所以当他看到你的问题时,也许会为你迟到




我找不到它对于显示器,但我猜你可以从使用win32_在managementobject中查找

信息开始。我可以在磁盘上找到引用

但不能直接显示>我希望其他人会在路上带上我们的b
或者当你看的时候也可能是你自己。


我以为我发给你这个带给你的路线。


我不确定它是否在那里,但可能确实存在。


Cor


" YXQ" < GA *** @ 163.net> schrieb


我想检测用户显示类型,LCD或CRT,怎么办?

谢谢



如果MsgBox(_

"你在液晶显示器上读到这个吗?),_

MsgBoxStyle.YesNo或MsgBoxStyle.Question)_

= MsgBoxResult.Yes然后


MsgBox(你拥有一台液晶显示器)

否则

MsgBox(你必须有一个CRT)

结束如果

抱歉,我没有更好的答案。


-

Armin


*" Cor" < no*@non.com> scripsit:

大多数Herfried直接知道这种事情,但我昨天看到他在这个新闻组中很晚才很忙,所以也许在你这么做的时候会很晚。
他看到了你的问题。


垃圾邮件发送者昨天试图惹恼这群人。我试图向他发送电子邮件但是他的电子邮件地址无效。如果他发出垃圾邮件,我会发布一份

滥用报告。

我找不到它用于显示器,但我猜你可以从寻找
信息开始在管理对象中使用win32_。我可以找到磁盘的参考资料,但不能直接显示>我希望其他人可以在路线上进一步带上我们,或者当你同时看时,也许你自己。




''Win32_DesktopMonitor''提供''DisplayType ''属性,但我认为

不包括OP想要的信息。


< http://msdn.microsoft.com /library/en-us/wmisdk/wmi/win32_desktopmonitor.asp>


-

Herfried K. Wagner

MVP ·VB Classic,VB.NET

< http://www.mvps.org/dotnet>


Hi
I want to detect user display type, LCD or CRT, how to do?

Thanks

解决方案

Hi yxq,

Mostly Herfried knows this kind of things direct, but I saw he was late very
busy in this newsgroup yesterday, so maybe it will be to late for you when
he sees your question.

I cannot find it for a display, but I gues you can start by looking for the
information in the managementobject with win32_ . I can find the references
to disks but not directly to displays> I hope that someone else will bring
us further on the route or maybe yourself when you look meanwhile.

I thought I send you this to bring you on the route.

I am not sure if it is there, but probably it is.

Cor


"yxq" <ga***@163.net> schrieb

Hi
I want to detect user display type, LCD or CRT, how to do?

Thanks



If MsgBox( _
"Do you read this on an LCD?", _
MsgBoxStyle.YesNo Or MsgBoxStyle.Question) _
= MsgBoxResult.Yes Then

MsgBox("You own an LCD")
Else
MsgBox("You must have a CRT")
End If
Sorry, I don''t have a better answer.

--
Armin


* "Cor" <no*@non.com> scripsit:

Mostly Herfried knows this kind of things direct, but I saw he was late very
busy in this newsgroup yesterday, so maybe it will be to late for you when
he sees your question.
A spammer tried to annoy people in this group yesterday. I tried to
send him an email but his email address was invalid. I will make an
abuse report if he contunues spamming.
I cannot find it for a display, but I gues you can start by looking for the
information in the managementobject with win32_ . I can find the references
to disks but not directly to displays> I hope that someone else will bring
us further on the route or maybe yourself when you look meanwhile.



''Win32_DesktopMonitor'' provides a ''DisplayType'' property, but I think
that won''t include the information the OP wants.

<http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_desktopmonitor.asp>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>


这篇关于如何检测显示类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆