Retrieving Motherboard Information in VB6

هذه المقالة متوفرة أيضا باللغة العربية، اقرأها هنا.

In the early days, we have talked about how to retrieve motherboard information in C# and VB.NET. After receiving your feedbacks, we decided to extend it to include VB6 as well.

After all, we could write the following code snippet to get motherboard information in Visual Basic 6:

Set colProcessList = GetObject("Winmgmts:") _
    .ExecQuery("SELECT SerialNumber, Product FROM Win32_BaseBoard")

For Each objprocess In colProcessList
    MsgBox ("Serial Number=" & objprocess.SerialNumber)
    MsgBox ("Product=" & objprocess.Product)

Feel free to contact us if you need any help.

Have a nice day!