Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 829889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:57:12+00:00 2026-05-15T03:57:12+00:00

hi all i have this great code that i love that will display the

  • 0

hi all i have this great code that i love that will display the kind of processor model and speed like so

RegistryKey Rkey = Registry.LocalMachine;
Rkey = Rkey.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");
Labelproc.Text = (string)Rkey.GetValue("ProcessorNameString");

and i was wondering if theres a way to do this for the kind of graphics card and the total installed system ram (in separate labels)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:57:13+00:00Added an answer on May 15, 2026 at 3:57 am

    Rather than reading the registry I’d suggest that you use WMI, specifically Win32_ComputerSystem to find number of CPUs and Win32_Processor to find info about it and Win32_ComputerSystem.TotalPhysicalMemory would give the RAM.
    I’m sure there is some way to pick up the graphics card(s) as well (remember that there might be more than one).

    Here’s an article with some samples for getting out various data:

    http://msdn.microsoft.com/en-us/library/aa394587%28VS.85%29.aspx

    The samples are in vbscript but it’s similar, I think the C# code for getting the RAM would be something like:

    ManagementObjectSearcher query = new ManagementObjectSearcher("SELECT * FROM Win32_ComputerSystem") ;
    ManagementObjectCollection coll = query.Get();
    foreach( ManagementObject mo in coll ) 
    {
        Console.WriteLine(mo["totalphysicalmemory"].ToString());
    }    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code to connect to Active Directory and get all the groups
Running ipconfig /all shows a Teredo Tunneling Pseudo-Interface. What is that? Does this have
All of a sudden in this MVC site I have no views that can
Hi the problem goes like this: I have in CoreData entities that have a
I know this isn't strictly a programming question but y'all must have experienced this.
I have this function to read in all ints from the file. The problem
I have this simple php script <?php echo '<pre>'; // Outputs all the result
I don't know if I have all the information needed to phrase this question
I have looked all of the place for this and I can't seem to
I've have searched on this and it seems to be a catch all, unfortunately

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.