Support Forums

Full Version: VB.NET Computer Information [SRC]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
A few things that might help..

Get the Computer User:
Code:
Textbox1.Text = Microsoft.Win32.Registry.GetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion", "RegisteredOwner", "")

Get the Computer Company:
Code:
Textbox1.text = Microsoft.Win32.Registry.GetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion", "RegisteredOrganization", "")

Gets Processor Name:
Code:
Textbox1.text = Microsoft.Win32.Registry.GetValue("HKEY_LOCAL_MACHINE\Hardware\DESCRIPTION\System\CentralProcessor\0", "Identifier", "")

Gets OS Name:
Code:
Textbox1.text = My.Computer.Info.OSFullName

Gets OS Version & Build Number:
Code:
Textbox1.text = My.Computer.Info.OSVersion

Gets BIOS Version:
Code:
Textbox1.text = Microsoft.Win32.Registry.GetValue("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\SystemInformation", "BIOSVersion", "")

Gets System Product Name:
Code:
Textbox1.text = Microsoft.Win32.Registry.GetValue("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\SystemInformation", "SystemProductName", "")

Gets Total Physical Memory:
Code:
Textbox1.text = My.Computer.Info.TotalPhysicalMemory

Gets Available Physical Memory:
Code:
Textbox1.text = My.Computer.Info.AvailablePhysicalMemory

Gets Clipboard Text:
Code:
Textbox1.text = My.Computer.Clipboard.GetText

Gets Local Time:
Code:
Textbox1.text = My.Computer.Clock.LocalTime

Blackhat
I'm going to try them. I suggest using the IF statement.
(05-24-2010, 10:01 AM)Braco Wrote: [ -> ]I'm going to try them. I suggest using the IF statement.

That totally depends on how you want to implement it.. The IF statement isn't needed if you just want to display the information...
Well if you use it like this
If textbox1.text = ".." Then
Textbox1.text = <code here>
And automaticly makes it show when you run the program.
Or a simpler solution would be to put the code under button_click or form_load...

Anyway lets not go off topic Smile
Yeah that works too Dubstep.
Thanks I will be using the Local Time code in my next update. (If I continue coding the same program)
Thanks a lot. I am going to use this in my programs. Smile
Ooh, Thanks, I'm currently learning visual basic, and i'm getting pretty good since it's not that hard of a program to code in.
This is a very basic but this does come in use Big Grin
Thanks !
Pages: 1 2 3 4