Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2005
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    display adaptor - visual basic 6

    Does anyone have any idea how to get the display adaptor information using visual basic 6?

  • #2
    New Coder
    Join Date
    May 2006
    Posts
    39
    Thanks
    0
    Thanked 1 Time in 1 Post
    in vbscript, it can be done using WMI
    Code:
    Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
    Set colItems = objWMIService.ExecQuery _
        ("Select * from Win32_DisplayControllerConfiguration")
    For Each objItem in colItems
        WScript.Echo "Name: " & objItem.Name
    Next
    i believe you can call WMI from VB6 too.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •