Aplikasi Informasi Registry |
Aplikasi Informasi Registry
Berguna untuk menampilkan registy system komputer Anda, seperti menampilkan sebuah nama, type, jenis, processor, motherboard dan windows yang Anda pakai.
Daftar Komponen
Table Layout Object |
Rincian Codding
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;
namespace Pertemuan2_ApliaksiInformasiRegistry
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.StartPosition = FormStartPosition.CenterScreen;
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
}
private void breged_Click(object sender, EventArgs e)
{
RegistryKey buka = Registry.LocalMachine;
RegistryKey namaOS = buka.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion");
RegistryKey processor = buka.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");
RegistryKey arsitektur = buka.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");
RegistryKey motherboard = buka.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\BIOS");
los.Text = Convert.ToString(namaOS.GetValue("ProductName"));
lprocessor.Text = Convert.ToString(processor.GetValue("ProcessorNameString"));
larsitektur.Text = Convert.ToString(arsitektur.GetValue("Identifier"));
lmotherboard.Text = Convert.ToString(motherboard.GetValue("BaseBoardManufacturer"));
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;
namespace Pertemuan2_ApliaksiInformasiRegistry
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.StartPosition = FormStartPosition.CenterScreen;
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
}
private void breged_Click(object sender, EventArgs e)
{
RegistryKey buka = Registry.LocalMachine;
RegistryKey namaOS = buka.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion");
RegistryKey processor = buka.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");
RegistryKey arsitektur = buka.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");
RegistryKey motherboard = buka.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\BIOS");
los.Text = Convert.ToString(namaOS.GetValue("ProductName"));
lprocessor.Text = Convert.ToString(processor.GetValue("ProcessorNameString"));
larsitektur.Text = Convert.ToString(arsitektur.GetValue("Identifier"));
lmotherboard.Text = Convert.ToString(motherboard.GetValue("BaseBoardManufacturer"));
}
}
}
Hasil Program |
INGAT!!
Jika Anda kurang puas atau ingin menambahkan ide
Anda dapat mengkostumnya di Form/View code nya
Untuk keterangan lebih lanjut lihat slide
Download Slide
Download Program
Selamat mencoba,
Semoga Bermanfaat.
0 komentar:
Posting Komentar