Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How Get Cpu Name

How Get Cpu Name

Scheduled Pinned Locked Moved Visual Basic
question
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FriendlySoluations
    wrote on last edited by
    #1

    How Can I Get Cpu Name???

    C P 2 Replies Last reply
    0
    • F FriendlySoluations

      How Can I Get Cpu Name???

      C Offline
      C Offline
      Clanguage
      wrote on last edited by
      #2

      FriendlySoluations wrote:

      How Can I Get Cpu Name???

      Me.Text = System.Environment.MachineName Hope this helps :) clanguage

      C 1 Reply Last reply
      0
      • C Clanguage

        FriendlySoluations wrote:

        How Can I Get Cpu Name???

        Me.Text = System.Environment.MachineName Hope this helps :) clanguage

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        I think he mean the name of the actual CPU, not the name of the machine in which the CPU resides.


        Upcoming Scottish Developers events: * UK Security Evangelists On Tour (2nd November, Edinburgh) * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog

        C 1 Reply Last reply
        0
        • C Colin Angus Mackay

          I think he mean the name of the actual CPU, not the name of the machine in which the CPU resides.


          Upcoming Scottish Developers events: * UK Security Evangelists On Tour (2nd November, Edinburgh) * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog

          C Offline
          C Offline
          Clanguage
          wrote on last edited by
          #4

          Colin Angus Mackay wrote:

          How Get Cpu Name

          :confused:You might be right. I never thought about the chip.

          clanguage

          1 Reply Last reply
          0
          • F FriendlySoluations

            How Can I Get Cpu Name???

            P Offline
            P Offline
            progload
            wrote on last edited by
            #5

            WMI... Alway's slow but.. somthing like this.. Imports System.Management Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim ConfigNamespace As String = "\\.\root\cimv2" Dim query As String = "select * from Win32_Processor" Dim searcher As ManagementObjectSearcher = New ManagementObjectSearcher(ConfigNamespace, query) Dim collection As ManagementObjectCollection = searcher.Get For Each item As ManagementObject In collection For Each prop As PropertyData In item.Properties Try Console.WriteLine(prop.Name + ":" + prop.Value.ToString) Catch gExVar As Exception End Try Next Next End Sub

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups