Imports System
Imports System.IO
Public Class Form1
Inherits System.Windows.Forms.Form
Dim n As Environment
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents TextBox4 As System.Windows.Forms.TextBox
Friend WithEvents TextBox5 As System.Windows.Forms.TextBox
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents LinkLabel1 As System.Windows.Forms.LinkLabel
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents LinkLabel2 As System.Windows.Forms.LinkLabel
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.TextBox2 = New System.Windows.Forms.TextBox
Me.TextBox3 = New System.Windows.Forms.TextBox
Me.Button1 = New System.Windows.Forms.Button
Me.Label1 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.TextBox4 = New System.Windows.Forms.TextBox
Me.TextBox5 = New System.Windows.Forms.TextBox
Me.Label4 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
Me.LinkLabel1 = New System.Windows.Forms.LinkLabel
Me.Label6 = New System.Windows.Forms.Label
Me.LinkLabel2 = New System.Windows.Forms.LinkLabel
Me.SuspendLayout()
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(8, 24)
Me.TextBox1.Multiline = True
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.Size = New System.Drawing.Size(176, 32)
Me.TextBox1.TabIndex = 2
Me.TextBox1.Text = "System1"
'
'TextBox2
'
Me.TextBox2.Location = New System.Drawing.Point(8, 72)
Me.TextBox2.Multiline = True
Me.TextBox2.Name = "TextBox2"
Me.TextBox2.Size = New System.Drawing.Size(176, 32)
Me.TextBox2.TabIndex = 3
Me.TextBox2.Text = "System2"
'
'TextBox3
'
Me.TextBox3.Location = New System.Drawing.Point(8, 120)
Me.TextBox3.Multiline = True
Me.TextBox3.Name = "TextBox3"
Me.TextBox3.Size = New System.Drawing.Size(176, 32)
Me.TextBox3.TabIndex = 4
Me.TextBox3.Text = "System3"
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(192, 120)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(168, 32)
Me.Button1.TabIndex = 5
Me.Button1.Text = "Refresh All"
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(8, 8)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(128, 16)
Me.Label1.TabIndex = 6
Me.Label1.Text = "Username:"
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(8, 56)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(104, 16)
Me.Label2.TabIndex = 7
Me.Label2.Text = "Computer Name:"
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(8, 104)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(144, 16)
Me.Label3.TabIndex = 8
Me.Label3.Text = "Operative System Platform:"
'
'TextBox4
'
Me.TextBox4.Location = New System.Drawing.Point(8, 168)
Me.TextBox4.Multiline = True
Me.TextBox4.Name = "TextBox4"
Me.TextBox4.Size = New System.Drawing.Size(176, 32)
Me.TextBox4.TabIndex = 9
Me.TextBox4.Text = "System4"
'
'TextBox5
'
Me.TextBox5.Location = New System.Drawing.Point(8, 216)
Me.TextBox5.Multiline = True
Me.TextBox5.Name = "TextBox5"
Me.TextBox5.Size = New System.Drawing.Size(176, 32)
Me.TextBox5.TabIndex = 10
Me.TextBox5.Text = "System5"
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(8, 152)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(144, 16)
Me.Label4.TabIndex = 11
Me.Label4.Text = "Operative System Version:"
'
'Label5
'
Me.Label5.Location = New System.Drawing.Point(8, 200)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(128, 16)
Me.Label5.TabIndex = 12
Me.Label5.Text = "System Directory:"
'
'LinkLabel1
'
Me.LinkLabel1.Location = New System.Drawing.Point(200, 24)
Me.LinkLabel1.Name = "LinkLabel1"
Me.LinkLabel1.Size = New System.Drawing.Size(112, 16)
Me.LinkLabel1.TabIndex = 13
Me.LinkLabel1.TabStop = True
Me.LinkLabel1.Text = "Created by Citynova"
'
'Label6
'
Me.Label6.Location = New System.Drawing.Point(240, 48)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(24, 16)
Me.Label6.TabIndex = 14
Me.Label6.Text = "For"
'
'LinkLabel2
'
Me.LinkLabel2.Location = New System.Drawing.Point(200, 72)
Me.LinkLabel2.Name = "LinkLabel2"
Me.LinkLabel2.Size = New System.Drawing.Size(136, 16)
Me.LinkLabel2.TabIndex = 15
Me.LinkLabel2.TabStop = True
Me.LinkLabel2.Text = "Piero Tofy's Community"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(368, 254)
Me.Controls.Add(Me.LinkLabel2)
Me.Controls.Add(Me.Label6)
Me.Controls.Add(Me.LinkLabel1)
Me.Controls.Add(Me.Label5)
Me.Controls.Add(Me.Label4)
Me.Controls.Add(Me.TextBox5)
Me.Controls.Add(Me.TextBox4)
Me.Controls.Add(Me.Label3)
Me.Controls.Add(Me.Label2)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.TextBox3)
Me.Controls.Add(Me.TextBox2)
Me.Controls.Add(Me.TextBox1)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
Me.MaximizeBox = False
Me.Name = "Form1"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "System Info by Citynova"
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TextBox1.Text = n.UserName.ToString
TextBox2.Text = n.MachineName.ToString
TextBox3.Text = n.OSVersion.Platform.ToString
TextBox4.Text = n.OSVersion.Version.ToString
TextBox5.Text = n.GetFolderPath(Environment.SpecialFolder.System)
End Sub
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = n.UserName.ToString
TextBox2.Text = n.MachineName.ToString
TextBox3.Text = n.OSVersion.Platform.ToString
TextBox4.Text = n.OSVersion.Version.ToString
TextBox5.Text = n.GetFolderPath(Environment.SpecialFolder.System)
End Sub
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
Shell("explorer.exe http://www.cityhack.altervista.org")
End Sub
Private Sub LinkLabel2_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel2.LinkClicked
Shell("explorer.exe http://www.pierotofy.it")
End Sub
End Class