VB.NET Computer Information [SRC] - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19) +---- Thread: VB.NET Computer Information [SRC] (/showthread.php?tid=7253) |
VB.NET Computer Information [SRC] - Fragma - 05-22-2010 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 RE: VB.NET Computer Information [SRC] - Marik™ - 05-24-2010 I'm going to try them. I suggest using the IF statement. RE: VB.NET Computer Information [SRC] - Fragma - 05-24-2010 (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... RE: VB.NET Computer Information [SRC] - Marik™ - 05-24-2010 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. RE: VB.NET Computer Information [SRC] - Fragma - 05-24-2010 Or a simpler solution would be to put the code under button_click or form_load... Anyway lets not go off topic RE: VB.NET Computer Information [SRC] - Marik™ - 05-24-2010 Yeah that works too Dubstep. RE: VB.NET Computer Information [SRC] - Matt™ - 05-26-2010 Thanks I will be using the Local Time code in my next update. (If I continue coding the same program) RE: VB.NET Computer Information [SRC] - flAmingw0rm - 05-31-2010 Thanks a lot. I am going to use this in my programs. RE: VB.NET Computer Information [SRC] - Natha - 05-31-2010 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. RE: VB.NET Computer Information [SRC] - Toχic - 05-31-2010 This is a very basic but this does come in use Thanks ! |