Rubrik: System/Windows · Desktop/Bildschirm/Display | VB-Versionen: VB4, VB5, VB6 | 09.08.06 |
![]() Dieser Code zeigt, wie sich die Anzahl installierter Monitore ermitteln lässt. | ||
Autor: ![]() | Bewertung: ![]() ![]() ![]() ![]() ![]() | Views: 19.871 |
https://www.tools4vb.com | System: Win9x, WinNT, Win2k, WinXP, Win7, Win8, Win10, Win11 | ![]() |
Nachfolgender Code zeigt, wie sich die Anzahl installierter Monitore ermitteln lässt.
' in einem Modul Option Explicit ' API-Deklaration Public Declare Function GetSystemMetrics Lib "user32" ( _ ByVal nIndex As Long) As Long Public Const SM_CMONITORS = 80
Aufrufbeispiel:
Dim nMonitors As Long nMonitors = GetSystemMetrics(SM_CMONITORS)