How to know the configuration of the computer in VB.NET

Recommended Answers

All 3 Replies

If you have the 2005 or 2008 vs or express then use:

My.Computer.whatever_you_are_looking_for

I am unable to see it like this
My.Computer.Name
I have to put it in messagebox
also i canot see MessageBox.Show(My.Computer.Info) it gives error
Value of type'Microsoft.VisualBasic.Devices.ComputerInfo' cannot be converted to 'string'

Try this:

MessageBox.Show(My.Computer.Name.ToString)
        MessageBox.Show(My.Computer.Screen.WorkingArea.ToString)
        MessageBox.Show(My.Computer.Info.OSFullName.ToString)
        MessageBox.Show(My.Computer.Info.AvailablePhysicalMemory.ToString(Format("###,###,###")))
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.