You are on page 1of 43

Imports Imports Imports Imports Imports Imports Imports

System System.Drawing System.Collections System.ComponentModel System.Windows.Forms System.Data System.Data.OleDb

Namespace WindowsApplication1 _ Public Class MainForm Inherits System.Windows.Forms.Form ' ServiceControllerManager is in charge of the System Services management using the ServiceController component Private ServiceControlMgr As New ServiceControllerManager() 'DriverControllerManager manage the System drivers via the ServiceController com ponent Private DriverControlMgr As New DriverControllerManager() 'ProcessControllerManager is destined to the control of the system Processes via the Process component Private ProcessControlMgr As New ProcessControllerManager() Private components As System.ComponentModel.IContainer #Region " Windows Form Designer generated code " Friend WithEvents OpenFile As System.Windows.Forms.OpenFileDialog Friend WithEvents Label9 As System.Windows.Forms.Label 'Processes info listBox Friend WithEvents ListPcs As System.Windows.Forms.ListBox 'Running processes listBox Friend WithEvents ListPcsRun As System.Windows.Forms.ListBox 'Paused drivers listBox Friend WithEvents ListDrvPaused As System.Windows.Forms.ListBox Friend WithEvents Label7 As System.Windows.Forms.Label Friend WithEvents Label5 As System.Windows.Forms.Label 'Stopped drivers list Friend WithEvents ListDrvStopped As System.Windows.Forms.ListBox 'Running drivers list Friend WithEvents ListDrvRun As System.Windows.Forms.ListBox 'Close app. button 'Load data button Friend WithEvents ButtonLoadData As System.Windows.Forms.Button Friend WithEvents TextMachineName As System.Windows.Forms.TextBox Friend WithEvents Label4 As System.Windows.Forms.Label 'Stopped services button Friend WithEvents ListSrvStopped As System.Windows.Forms.ListBox 'Paused services List Friend WithEvents ListSrvPaused As System.Windows.Forms.ListBox Friend WithEvents Label1 As System.Windows.Forms.Label 'Running services list Friend WithEvents ListSrvRun As System.Windows.Forms.ListBox 'User classes :

Friend WithEvents ButtonClose As System.Windows.Forms.Button Friend WithEvents ButtonStartProcess As System.Windows.Forms.Button Public Sub New() InitializeComponent() End Sub 'New '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 Friend WithEvents label8 As System.Windows.Forms.Label Friend WithEvents label6 As System.Windows.Forms.Label Friend WithEvents label3 As System.Windows.Forms.Label Friend WithEvents label2 As System.Windows.Forms.Label Friend WithEvents tabProcess As System.Windows.Forms.TabPage Friend WithEvents tabDrivers As System.Windows.Forms.TabPage Friend WithEvents tabServices As System.Windows.Forms.TabPage Friend WithEvents tabControl1 As System.Windows.Forms.TabControl Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu Friend WithEvents MenuItem1 As System.Windows.Forms.MenuItem Friend WithEvents MenuItem2 As System.Windows.Forms.MenuItem Friend WithEvents MenuItem3 As System.Windows.Forms.MenuItem Friend WithEvents MenuItem4 As System.Windows.Forms.MenuItem Friend WithEvents MenuItem5 As System.Windows.Forms.MenuItem Friend WithEvents TabPage1 As System.Windows.Forms.TabPage Friend WithEvents RichTextBox1 As System.Windows.Forms.RichTextBox Friend WithEvents Label10 As System.Windows.Forms.Label Friend WithEvents Button1 As System.Windows.Forms.Button Friend WithEvents Button2 As System.Windows.Forms.Button Friend WithEvents Button3 As System.Windows.Forms.Button Friend WithEvents Button4 As System.Windows.Forms.Button Friend WithEvents Button5 As System.Windows.Forms.Button Friend WithEvents Button6 As System.Windows.Forms.Button Friend WithEvents TabPage2 As System.Windows.Forms.TabPage Friend WithEvents Label11 As System.Windows.Forms.Label Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox Friend WithEvents Label12 As System.Windows.Forms.Label Friend WithEvents ComboBox1 As System.Windows.Forms.ComboBox Friend WithEvents Button8 As System.Windows.Forms.Button Friend WithEvents Label13 As System.Windows.Forms.Label Friend WithEvents ComboBox2 As System.Windows.Forms.ComboBox Friend WithEvents CheckBox1 As System.Windows.Forms.CheckBox Friend WithEvents Label14 As System.Windows.Forms.Label Friend WithEvents CheckBox2 As System.Windows.Forms.CheckBox Friend WithEvents Label15 As System.Windows.Forms.Label Friend WithEvents Button9 As System.Windows.Forms.Button Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox Friend WithEvents Label16 As System.Windows.Forms.Label Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox Friend WithEvents Label17 As System.Windows.Forms.Label Friend WithEvents ComboBox3 As System.Windows.Forms.ComboBox Friend WithEvents Button7 As System.Windows.Forms.Button

Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Public Friend Friend Friend

WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents

GroupBox4 As System.Windows.Forms.GroupBox GroupBox5 As System.Windows.Forms.GroupBox Label18 As System.Windows.Forms.Label ComboBox4 As System.Windows.Forms.ComboBox Button10 As System.Windows.Forms.Button Label19 As System.Windows.Forms.Label ComboBox5 As System.Windows.Forms.ComboBox Button11 As System.Windows.Forms.Button TabPage3 As System.Windows.Forms.TabPage Label20 As System.Windows.Forms.Label GroupBox6 As System.Windows.Forms.GroupBox Button12 As System.Windows.Forms.Button Button13 As System.Windows.Forms.Button Button14 As System.Windows.Forms.Button Button15 As System.Windows.Forms.Button Button16 As System.Windows.Forms.Button Button17 As System.Windows.Forms.Button Button18 As System.Windows.Forms.Button Button19 As System.Windows.Forms.Button Button20 As System.Windows.Forms.Button Button21 As System.Windows.Forms.Button Button22 As System.Windows.Forms.Button Button23 As System.Windows.Forms.Button Button24 As System.Windows.Forms.Button Button25 As System.Windows.Forms.Button Button27 As System.Windows.Forms.Button Button28 As System.Windows.Forms.Button Button29 As System.Windows.Forms.Button GroupBox7 As System.Windows.Forms.GroupBox Label21 As System.Windows.Forms.Label GroupBox8 As System.Windows.Forms.GroupBox Label22 As System.Windows.Forms.Label TextBox1 As System.Windows.Forms.TextBox Button30 As System.Windows.Forms.Button TextBox2 As System.Windows.Forms.TextBox TabPage4 As System.Windows.Forms.TabPage Label23 As System.Windows.Forms.Label GroupBox9 As System.Windows.Forms.GroupBox GroupBox10 As System.Windows.Forms.GroupBox GroupBox11 As System.Windows.Forms.GroupBox Label24 As System.Windows.Forms.Label ComboBox6 As System.Windows.Forms.ComboBox Button26 As System.Windows.Forms.Button TextBox3 As System.Windows.Forms.TextBox Button31 As System.Windows.Forms.Button RichTextBox2 As System.Windows.Forms.RichTextBox MenuItem6 As System.Windows.Forms.MenuItem MenuItem7 As System.Windows.Forms.MenuItem Button32 As System.Windows.Forms.Button Button33 As System.Windows.Forms.Button Button34 As System.Windows.Forms.Button MenuItem8 As System.Windows.Forms.MenuItem txtMachineName As System.Windows.Forms.TextBox MenuItem9 As System.Windows.Forms.MenuItem MenuItem10 As System.Windows.Forms.MenuItem MenuItem11 As System.Windows.Forms.MenuItem

Private Sub InitializeComponent() Me.components = New System.ComponentModel.Container Dim resources As System.ComponentModel.ComponentResourceManager = New System.Com

ponentModel.ComponentResourceManager(GetType(MainForm)) Me.Label4 = New System.Windows.Forms.Label Me.Label5 = New System.Windows.Forms.Label Me.label6 = New System.Windows.Forms.Label Me.Label7 = New System.Windows.Forms.Label Me.Label1 = New System.Windows.Forms.Label Me.label2 = New System.Windows.Forms.Label Me.label3 = New System.Windows.Forms.Label Me.tabDrivers = New System.Windows.Forms.TabPage Me.Button33 = New System.Windows.Forms.Button Me.ListDrvPaused = New System.Windows.Forms.ListBox Me.ListDrvStopped = New System.Windows.Forms.ListBox Me.ListDrvRun = New System.Windows.Forms.ListBox Me.tabControl1 = New System.Windows.Forms.TabControl Me.tabServices = New System.Windows.Forms.TabPage Me.Button32 = New System.Windows.Forms.Button Me.ListSrvStopped = New System.Windows.Forms.ListBox Me.ListSrvPaused = New System.Windows.Forms.ListBox Me.ListSrvRun = New System.Windows.Forms.ListBox Me.TabPage3 = New System.Windows.Forms.TabPage Me.GroupBox8 = New System.Windows.Forms.GroupBox Me.TextBox2 = New System.Windows.Forms.TextBox Me.Button30 = New System.Windows.Forms.Button Me.TextBox1 = New System.Windows.Forms.TextBox Me.Label22 = New System.Windows.Forms.Label Me.GroupBox7 = New System.Windows.Forms.GroupBox Me.Label21 = New System.Windows.Forms.Label Me.GroupBox6 = New System.Windows.Forms.GroupBox Me.Button29 = New System.Windows.Forms.Button Me.Button28 = New System.Windows.Forms.Button Me.Button27 = New System.Windows.Forms.Button Me.Button25 = New System.Windows.Forms.Button Me.Button24 = New System.Windows.Forms.Button Me.Button23 = New System.Windows.Forms.Button Me.Button22 = New System.Windows.Forms.Button Me.Button21 = New System.Windows.Forms.Button Me.Button20 = New System.Windows.Forms.Button Me.Button19 = New System.Windows.Forms.Button Me.Button18 = New System.Windows.Forms.Button Me.Button17 = New System.Windows.Forms.Button Me.Button16 = New System.Windows.Forms.Button Me.Button15 = New System.Windows.Forms.Button Me.Button14 = New System.Windows.Forms.Button Me.Button13 = New System.Windows.Forms.Button Me.Button12 = New System.Windows.Forms.Button Me.Label20 = New System.Windows.Forms.Label Me.tabProcess = New System.Windows.Forms.TabPage Me.Button34 = New System.Windows.Forms.Button Me.Label9 = New System.Windows.Forms.Label Me.label8 = New System.Windows.Forms.Label Me.ListPcs = New System.Windows.Forms.ListBox Me.ListPcsRun = New System.Windows.Forms.ListBox Me.TabPage2 = New System.Windows.Forms.TabPage Me.GroupBox5 = New System.Windows.Forms.GroupBox Me.Button11 = New System.Windows.Forms.Button Me.ComboBox5 = New System.Windows.Forms.ComboBox Me.Label19 = New System.Windows.Forms.Label Me.GroupBox4 = New System.Windows.Forms.GroupBox Me.Button10 = New System.Windows.Forms.Button Me.ComboBox4 = New System.Windows.Forms.ComboBox

Me.Label18 = New System.Windows.Forms.Label Me.GroupBox3 = New System.Windows.Forms.GroupBox Me.Button7 = New System.Windows.Forms.Button Me.ComboBox3 = New System.Windows.Forms.ComboBox Me.Label17 = New System.Windows.Forms.Label Me.GroupBox1 = New System.Windows.Forms.GroupBox Me.Button8 = New System.Windows.Forms.Button Me.ComboBox1 = New System.Windows.Forms.ComboBox Me.Label12 = New System.Windows.Forms.Label Me.Label11 = New System.Windows.Forms.Label Me.GroupBox2 = New System.Windows.Forms.GroupBox Me.Button9 = New System.Windows.Forms.Button Me.Label15 = New System.Windows.Forms.Label Me.CheckBox2 = New System.Windows.Forms.CheckBox Me.Label14 = New System.Windows.Forms.Label Me.CheckBox1 = New System.Windows.Forms.CheckBox Me.ComboBox2 = New System.Windows.Forms.ComboBox Me.Label13 = New System.Windows.Forms.Label Me.TabPage1 = New System.Windows.Forms.TabPage Me.Button6 = New System.Windows.Forms.Button Me.Button5 = New System.Windows.Forms.Button Me.Button4 = New System.Windows.Forms.Button Me.Button3 = New System.Windows.Forms.Button Me.Button2 = New System.Windows.Forms.Button Me.Button1 = New System.Windows.Forms.Button Me.Label10 = New System.Windows.Forms.Label Me.RichTextBox1 = New System.Windows.Forms.RichTextBox Me.TabPage4 = New System.Windows.Forms.TabPage Me.GroupBox11 = New System.Windows.Forms.GroupBox Me.RichTextBox2 = New System.Windows.Forms.RichTextBox Me.Label24 = New System.Windows.Forms.Label Me.GroupBox10 = New System.Windows.Forms.GroupBox Me.Button31 = New System.Windows.Forms.Button Me.TextBox3 = New System.Windows.Forms.TextBox Me.GroupBox9 = New System.Windows.Forms.GroupBox Me.Button26 = New System.Windows.Forms.Button Me.ComboBox6 = New System.Windows.Forms.ComboBox Me.Label23 = New System.Windows.Forms.Label Me.ButtonStartProcess = New System.Windows.Forms.Button Me.OpenFile = New System.Windows.Forms.OpenFileDialog Me.ButtonClose = New System.Windows.Forms.Button Me.txtMachineName = New System.Windows.Forms.TextBox Me.ButtonLoadData = New System.Windows.Forms.Button Me.MainMenu1 = New System.Windows.Forms.MainMenu(Me.components) Me.MenuItem1 = New System.Windows.Forms.MenuItem Me.MenuItem2 = New System.Windows.Forms.MenuItem Me.MenuItem10 = New System.Windows.Forms.MenuItem Me.MenuItem11 = New System.Windows.Forms.MenuItem Me.MenuItem7 = New System.Windows.Forms.MenuItem Me.MenuItem8 = New System.Windows.Forms.MenuItem Me.MenuItem9 = New System.Windows.Forms.MenuItem Me.MenuItem3 = New System.Windows.Forms.MenuItem Me.MenuItem4 = New System.Windows.Forms.MenuItem Me.MenuItem5 = New System.Windows.Forms.MenuItem Me.MenuItem6 = New System.Windows.Forms.MenuItem Me.PictureBox1 = New System.Windows.Forms.PictureBox Me.Label16 = New System.Windows.Forms.Label Me.tabDrivers.SuspendLayout() Me.tabControl1.SuspendLayout() Me.tabServices.SuspendLayout()

Me.TabPage3.SuspendLayout() Me.GroupBox8.SuspendLayout() Me.GroupBox7.SuspendLayout() Me.GroupBox6.SuspendLayout() Me.tabProcess.SuspendLayout() Me.TabPage2.SuspendLayout() Me.GroupBox5.SuspendLayout() Me.GroupBox4.SuspendLayout() Me.GroupBox3.SuspendLayout() Me.GroupBox1.SuspendLayout() Me.GroupBox2.SuspendLayout() Me.TabPage1.SuspendLayout() Me.TabPage4.SuspendLayout() Me.GroupBox11.SuspendLayout() Me.GroupBox10.SuspendLayout() Me.GroupBox9.SuspendLayout() CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit() Me.SuspendLayout() ' 'Label4 ' Me.Label4.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontSt yle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label4.Location = New System.Drawing.Point(8, 424) Me.Label4.Name = "Label4" Me.Label4.Size = New System.Drawing.Size(160, 16) Me.Label4.TabIndex = 1 Me.Label4.Text = "Machine Name/IP Address:" ' 'Label5 ' Me.Label5.BackColor = System.Drawing.Color.Transparent Me.Label5.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontSt yle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label5.Location = New System.Drawing.Point(24, 120) Me.Label5.Name = "Label5" Me.Label5.Size = New System.Drawing.Size(152, 16) Me.Label5.TabIndex = 2 Me.Label5.Text = "Stopped Drivers" ' 'label6 ' Me.label6.BackColor = System.Drawing.Color.Transparent Me.label6.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontSt yle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.label6.Location = New System.Drawing.Point(24, 8) Me.label6.Name = "label6" Me.label6.Size = New System.Drawing.Size(152, 16) Me.label6.TabIndex = 3 Me.label6.Text = "Running Drivers" ' 'Label7 ' Me.Label7.BackColor = System.Drawing.Color.Transparent Me.Label7.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontSt yle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label7.Location = New System.Drawing.Point(24, 232) Me.Label7.Name = "Label7" Me.Label7.Size = New System.Drawing.Size(152, 16) Me.Label7.TabIndex = 4

Me.Label7.Text = "Paused Drivers" ' 'Label1 ' Me.Label1.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontSt yle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label1.Location = New System.Drawing.Point(8, 8) Me.Label1.Name = "Label1" Me.Label1.Size = New System.Drawing.Size(224, 16) Me.Label1.TabIndex = 1 Me.Label1.Text = "Running System Services" ' 'label2 ' Me.label2.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontSt yle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.label2.Location = New System.Drawing.Point(8, 232) Me.label2.Name = "label2" Me.label2.Size = New System.Drawing.Size(232, 16) Me.label2.TabIndex = 3 Me.label2.Text = "Paused System Services" ' 'label3 ' Me.label3.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontSt yle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.label3.Location = New System.Drawing.Point(8, 120) Me.label3.Name = "label3" Me.label3.Size = New System.Drawing.Size(177, 16) Me.label3.TabIndex = 5 Me.label3.Text = "Stopped System Services" ' 'tabDrivers ' Me.tabDrivers.BackColor = System.Drawing.Color.FromArgb(CType(CType(185, Byte), Integer), CType(CType(202, Byte), Integer), CType(CType(200, Byte), Integer)) Me.tabDrivers.Controls.Add(Me.Button33) Me.tabDrivers.Controls.Add(Me.ListDrvPaused) Me.tabDrivers.Controls.Add(Me.Label7) Me.tabDrivers.Controls.Add(Me.label6) Me.tabDrivers.Controls.Add(Me.Label5) Me.tabDrivers.Controls.Add(Me.ListDrvStopped) Me.tabDrivers.Controls.Add(Me.ListDrvRun) Me.tabDrivers.Location = New System.Drawing.Point(4, 22) Me.tabDrivers.Name = "tabDrivers" Me.tabDrivers.Size = New System.Drawing.Size(562, 382) Me.tabDrivers.TabIndex = 1 Me.tabDrivers.Text = "Windows Drivers" ' 'Button33 ' Me.Button33.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System .Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Button33.Location = New System.Drawing.Point(344, 352) Me.Button33.Name = "Button33" Me.Button33.Size = New System.Drawing.Size(144, 24) Me.Button33.TabIndex = 7 Me.Button33.Text = "Save as &Record" ' 'ListDrvPaused

' Me.ListDrvPaused.Anchor = System.Windows.Forms.AnchorStyles.None Me.ListDrvPaused.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.ListDrvPaused.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!) Me.ListDrvPaused.Location = New System.Drawing.Point(33, 252) Me.ListDrvPaused.Name = "ListDrvPaused" Me.ListDrvPaused.Size = New System.Drawing.Size(488, 93) Me.ListDrvPaused.TabIndex = 5 ' 'ListDrvStopped ' Me.ListDrvStopped.Anchor = System.Windows.Forms.AnchorStyles.None Me.ListDrvStopped.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.ListDrvStopped.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!) Me.ListDrvStopped.Location = New System.Drawing.Point(33, 141) Me.ListDrvStopped.Name = "ListDrvStopped" Me.ListDrvStopped.Size = New System.Drawing.Size(488, 80) Me.ListDrvStopped.TabIndex = 1 ' 'ListDrvRun ' Me.ListDrvRun.Anchor = System.Windows.Forms.AnchorStyles.None Me.ListDrvRun.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.ListDrvRun.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!) Me.ListDrvRun.Location = New System.Drawing.Point(33, 29) Me.ListDrvRun.Name = "ListDrvRun" Me.ListDrvRun.Size = New System.Drawing.Size(488, 80) Me.ListDrvRun.TabIndex = 0 ' 'tabControl1 ' Me.tabControl1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System. Windows.Forms.AnchorStyles.Left) _ Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles) Me.tabControl1.Controls.Add(Me.tabServices) Me.tabControl1.Controls.Add(Me.TabPage3) Me.tabControl1.Controls.Add(Me.tabProcess) Me.tabControl1.Controls.Add(Me.tabDrivers) Me.tabControl1.Controls.Add(Me.TabPage2) Me.tabControl1.Controls.Add(Me.TabPage1) Me.tabControl1.Controls.Add(Me.TabPage4) Me.tabControl1.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, Sys tem.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte) ) Me.tabControl1.HotTrack = True Me.tabControl1.Location = New System.Drawing.Point(0, 8) Me.tabControl1.Name = "tabControl1" Me.tabControl1.SelectedIndex = 0 Me.tabControl1.Size = New System.Drawing.Size(570, 408) Me.tabControl1.TabIndex = 0 Me.tabControl1.Text = "tabControl1" ' 'tabServices ' Me.tabServices.BackColor = System.Drawing.Color.FromArgb(CType(CType(185, Byte), Integer), CType(CType(202, Byte), Integer), CType(CType(200, Byte), Integer)) Me.tabServices.Controls.Add(Me.Button32) Me.tabServices.Controls.Add(Me.label3) Me.tabServices.Controls.Add(Me.ListSrvStopped) Me.tabServices.Controls.Add(Me.label2)

Me.tabServices.Controls.Add(Me.ListSrvPaused) Me.tabServices.Controls.Add(Me.Label1) Me.tabServices.Controls.Add(Me.ListSrvRun) Me.tabServices.Location = New System.Drawing.Point(4, 22) Me.tabServices.Name = "tabServices" Me.tabServices.Size = New System.Drawing.Size(562, 382) Me.tabServices.TabIndex = 0 Me.tabServices.Text = "System Services" ' 'Button32 ' Me.Button32.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System .Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Button32.Location = New System.Drawing.Point(360, 352) Me.Button32.Name = "Button32" Me.Button32.Size = New System.Drawing.Size(144, 24) Me.Button32.TabIndex = 6 Me.Button32.Text = "Save as &Record" ' 'ListSrvStopped ' Me.ListSrvStopped.Anchor = System.Windows.Forms.AnchorStyles.None Me.ListSrvStopped.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.ListSrvStopped.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!) Me.ListSrvStopped.Location = New System.Drawing.Point(33, 141) Me.ListSrvStopped.Name = "ListSrvStopped" Me.ListSrvStopped.Size = New System.Drawing.Size(488, 80) Me.ListSrvStopped.TabIndex = 4 ' 'ListSrvPaused ' Me.ListSrvPaused.Anchor = System.Windows.Forms.AnchorStyles.None Me.ListSrvPaused.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.ListSrvPaused.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!) Me.ListSrvPaused.Location = New System.Drawing.Point(33, 253) Me.ListSrvPaused.Name = "ListSrvPaused" Me.ListSrvPaused.Size = New System.Drawing.Size(488, 93) Me.ListSrvPaused.TabIndex = 2 ' 'ListSrvRun ' Me.ListSrvRun.Anchor = System.Windows.Forms.AnchorStyles.None Me.ListSrvRun.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.ListSrvRun.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!) Me.ListSrvRun.Location = New System.Drawing.Point(33, 29) Me.ListSrvRun.Name = "ListSrvRun" Me.ListSrvRun.Size = New System.Drawing.Size(488, 80) Me.ListSrvRun.TabIndex = 0 ' 'TabPage3 ' Me.TabPage3.BackColor = System.Drawing.Color.FromArgb(CType(CType(185, Byte), In teger), CType(CType(202, Byte), Integer), CType(CType(200, Byte), Integer)) Me.TabPage3.Controls.Add(Me.GroupBox8) Me.TabPage3.Controls.Add(Me.GroupBox7) Me.TabPage3.Controls.Add(Me.GroupBox6) Me.TabPage3.Controls.Add(Me.Label20) Me.TabPage3.Location = New System.Drawing.Point(4, 22) Me.TabPage3.Name = "TabPage3" Me.TabPage3.Size = New System.Drawing.Size(562, 382)

Me.TabPage3.TabIndex = 5 Me.TabPage3.Text = "WinPanel" ' 'GroupBox8 ' Me.GroupBox8.Controls.Add(Me.TextBox2) Me.GroupBox8.Controls.Add(Me.Button30) Me.GroupBox8.Controls.Add(Me.TextBox1) Me.GroupBox8.Controls.Add(Me.Label22) Me.GroupBox8.Location = New System.Drawing.Point(232, 48) Me.GroupBox8.Name = "GroupBox8" Me.GroupBox8.Size = New System.Drawing.Size(328, 80) Me.GroupBox8.TabIndex = 3 Me.GroupBox8.TabStop = False Me.GroupBox8.Text = "Set Windows Version" ' 'TextBox2 ' Me.TextBox2.BackColor = System.Drawing.Color.White Me.TextBox2.BorderStyle = System.Windows.Forms.BorderStyle.None Me.TextBox2.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System .Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.TextBox2.Location = New System.Drawing.Point(8, 56) Me.TextBox2.Name = "TextBox2" Me.TextBox2.Size = New System.Drawing.Size(184, 13) Me.TextBox2.TabIndex = 3 ' 'Button30 ' Me.Button30.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), In teger), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer)) Me.Button30.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button30.Location = New System.Drawing.Point(200, 48) Me.Button30.Name = "Button30" Me.Button30.Size = New System.Drawing.Size(88, 24) Me.Button30.TabIndex = 2 Me.Button30.Text = "Set Version" Me.Button30.UseVisualStyleBackColor = False ' 'TextBox1 ' Me.TextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.TextBox1.Location = New System.Drawing.Point(104, 24) Me.TextBox1.Name = "TextBox1" Me.TextBox1.Size = New System.Drawing.Size(184, 20) Me.TextBox1.TabIndex = 1 Me.TextBox1.Text = "Version (IE, 98, Me, 2000, XP)" ' 'Label22 ' Me.Label22.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System. Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label22.Location = New System.Drawing.Point(8, 24) Me.Label22.Name = "Label22" Me.Label22.Size = New System.Drawing.Size(104, 16) Me.Label22.TabIndex = 0 Me.Label22.Text = "Microsoft Windows" ' 'GroupBox7 '

Me.GroupBox7.Controls.Add(Me.Label21) Me.GroupBox7.Location = New System.Drawing.Point(8, 48) Me.GroupBox7.Name = "GroupBox7" Me.GroupBox7.Size = New System.Drawing.Size(224, 80) Me.GroupBox7.TabIndex = 2 Me.GroupBox7.TabStop = False Me.GroupBox7.Text = "Important" ' 'Label21 ' Me.Label21.Location = New System.Drawing.Point(8, 16) Me.Label21.Name = "Label21" Me.Label21.Size = New System.Drawing.Size(208, 48) Me.Label21.TabIndex = 0 Me.Label21.Text = "For the safety of your system, before using the control panel please type your Wi" & _ "ndows version in the box provided." ' 'GroupBox6 ' Me.GroupBox6.Controls.Add(Me.Button29) Me.GroupBox6.Controls.Add(Me.Button28) Me.GroupBox6.Controls.Add(Me.Button27) Me.GroupBox6.Controls.Add(Me.Button25) Me.GroupBox6.Controls.Add(Me.Button24) Me.GroupBox6.Controls.Add(Me.Button23) Me.GroupBox6.Controls.Add(Me.Button22) Me.GroupBox6.Controls.Add(Me.Button21) Me.GroupBox6.Controls.Add(Me.Button20) Me.GroupBox6.Controls.Add(Me.Button19) Me.GroupBox6.Controls.Add(Me.Button18) Me.GroupBox6.Controls.Add(Me.Button17) Me.GroupBox6.Controls.Add(Me.Button16) Me.GroupBox6.Controls.Add(Me.Button15) Me.GroupBox6.Controls.Add(Me.Button14) Me.GroupBox6.Controls.Add(Me.Button13) Me.GroupBox6.Controls.Add(Me.Button12) Me.GroupBox6.Location = New System.Drawing.Point(8, 128) Me.GroupBox6.Name = "GroupBox6" Me.GroupBox6.Size = New System.Drawing.Size(552, 248) Me.GroupBox6.TabIndex = 1 Me.GroupBox6.TabStop = False Me.GroupBox6.Text = "Control Panel" ' 'Button29 ' Me.Button29.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button29.Location = New System.Drawing.Point(192, 216) Me.Button29.Name = "Button29" Me.Button29.Size = New System.Drawing.Size(128, 24) Me.Button29.TabIndex = 17 Me.Button29.Text = "Users" ' 'Button28 ' Me.Button28.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button28.Location = New System.Drawing.Point(368, 176) Me.Button28.Name = "Button28" Me.Button28.Size = New System.Drawing.Size(128, 24) Me.Button28.TabIndex = 16

Me.Button28.Text = "Sounds && Audio" ' 'Button27 ' Me.Button27.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button27.Location = New System.Drawing.Point(8, 216) Me.Button27.Name = "Button27" Me.Button27.Size = New System.Drawing.Size(128, 24) Me.Button27.TabIndex = 15 Me.Button27.Text = "International" ' 'Button25 ' Me.Button25.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button25.Location = New System.Drawing.Point(192, 176) Me.Button25.Name = "Button25" Me.Button25.Size = New System.Drawing.Size(128, 24) Me.Button25.TabIndex = 13 Me.Button25.Text = "Power Options" ' 'Button24 ' Me.Button24.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button24.Location = New System.Drawing.Point(8, 176) Me.Button24.Name = "Button24" Me.Button24.Size = New System.Drawing.Size(128, 24) Me.Button24.TabIndex = 12 Me.Button24.Text = "Phone/Modem" ' 'Button23 ' Me.Button23.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button23.Location = New System.Drawing.Point(368, 136) Me.Button23.Name = "Button23" Me.Button23.Size = New System.Drawing.Size(128, 24) Me.Button23.TabIndex = 11 Me.Button23.Text = "Network Options" ' 'Button22 ' Me.Button22.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button22.Location = New System.Drawing.Point(192, 136) Me.Button22.Name = "Button22" Me.Button22.Size = New System.Drawing.Size(128, 24) Me.Button22.TabIndex = 10 Me.Button22.Text = "Mouse Options" ' 'Button21 ' Me.Button21.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button21.Location = New System.Drawing.Point(8, 136) Me.Button21.Name = "Button21" Me.Button21.Size = New System.Drawing.Size(128, 24) Me.Button21.TabIndex = 9 Me.Button21.Text = "Time && Date" ' 'Button20 ' Me.Button20.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button20.Location = New System.Drawing.Point(368, 96)

Me.Button20.Name = "Button20" Me.Button20.Size = New System.Drawing.Size(128, 24) Me.Button20.TabIndex = 8 Me.Button20.Text = "Internet Options" ' 'Button19 ' Me.Button19.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button19.Location = New System.Drawing.Point(192, 96) Me.Button19.Name = "Button19" Me.Button19.Size = New System.Drawing.Size(128, 24) Me.Button19.TabIndex = 7 Me.Button19.Text = "Game Controllers" ' 'Button18 ' Me.Button18.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button18.Location = New System.Drawing.Point(8, 96) Me.Button18.Name = "Button18" Me.Button18.Size = New System.Drawing.Size(128, 24) Me.Button18.TabIndex = 6 Me.Button18.Text = "Fonts" ' 'Button17 ' Me.Button17.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button17.Location = New System.Drawing.Point(368, 56) Me.Button17.Name = "Button17" Me.Button17.Size = New System.Drawing.Size(128, 24) Me.Button17.TabIndex = 5 Me.Button17.Text = "System Info" ' 'Button16 ' Me.Button16.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button16.Location = New System.Drawing.Point(192, 56) Me.Button16.Name = "Button16" Me.Button16.Size = New System.Drawing.Size(128, 24) Me.Button16.TabIndex = 4 Me.Button16.Text = "Display" ' 'Button15 ' Me.Button15.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button15.Location = New System.Drawing.Point(8, 56) Me.Button15.Name = "Button15" Me.Button15.Size = New System.Drawing.Size(128, 24) Me.Button15.TabIndex = 3 Me.Button15.Text = "Network Connections" ' 'Button14 ' Me.Button14.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button14.Location = New System.Drawing.Point(368, 16) Me.Button14.Name = "Button14" Me.Button14.Size = New System.Drawing.Size(128, 24) Me.Button14.TabIndex = 2 Me.Button14.Text = "Uninstall Programs" ' 'Button13

' Me.Button13.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button13.Location = New System.Drawing.Point(192, 16) Me.Button13.Name = "Button13" Me.Button13.Size = New System.Drawing.Size(128, 24) Me.Button13.TabIndex = 1 Me.Button13.Text = "Add Hardware" ' 'Button12 ' Me.Button12.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button12.Location = New System.Drawing.Point(8, 16) Me.Button12.Name = "Button12" Me.Button12.Size = New System.Drawing.Size(128, 24) Me.Button12.TabIndex = 0 Me.Button12.Text = "Accessibility" ' 'Label20 ' Me.Label20.Location = New System.Drawing.Point(8, 8) Me.Label20.Name = "Label20" Me.Label20.Size = New System.Drawing.Size(536, 40) Me.Label20.TabIndex = 0 Me.Label20.Text = "Here you can find the entire Windows control panel. Use the o ptions below by doub" & _ "le-clicking them to administer you system." ' 'tabProcess ' Me.tabProcess.BackColor = System.Drawing.Color.FromArgb(CType(CType(185, Byte), Integer), CType(CType(202, Byte), Integer), CType(CType(200, Byte), Integer)) Me.tabProcess.Controls.Add(Me.Button34) Me.tabProcess.Controls.Add(Me.Label9) Me.tabProcess.Controls.Add(Me.label8) Me.tabProcess.Controls.Add(Me.ListPcs) Me.tabProcess.Controls.Add(Me.ListPcsRun) Me.tabProcess.Location = New System.Drawing.Point(4, 22) Me.tabProcess.Name = "tabProcess" Me.tabProcess.Size = New System.Drawing.Size(562, 382) Me.tabProcess.TabIndex = 2 Me.tabProcess.Text = "System Processes" ' 'Button34 ' Me.Button34.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System .Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Button34.Location = New System.Drawing.Point(212, 179) Me.Button34.Name = "Button34" Me.Button34.Size = New System.Drawing.Size(71, 37) Me.Button34.TabIndex = 7 Me.Button34.Text = "Save as &Record" ' 'Label9 ' Me.Label9.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontSt yle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label9.Location = New System.Drawing.Point(336, 8) Me.Label9.Name = "Label9" Me.Label9.Size = New System.Drawing.Size(128, 16) Me.Label9.TabIndex = 3

Me.Label9.Text = "Process Properties" ' 'label8 ' Me.label8.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontSt yle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.label8.Location = New System.Drawing.Point(24, 8) Me.label8.Name = "label8" Me.label8.Size = New System.Drawing.Size(168, 16) Me.label8.TabIndex = 2 Me.label8.Text = "Running Windows Processes" ' 'ListPcs ' Me.ListPcs.Anchor = System.Windows.Forms.AnchorStyles.None Me.ListPcs.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.ListPcs.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!) Me.ListPcs.Location = New System.Drawing.Point(289, 29) Me.ListPcs.MultiColumn = True Me.ListPcs.Name = "ListPcs" Me.ListPcs.ScrollAlwaysVisible = True Me.ListPcs.Size = New System.Drawing.Size(224, 327) Me.ListPcs.TabIndex = 1 ' 'ListPcsRun ' Me.ListPcsRun.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.ListPcsRun.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!) Me.ListPcsRun.Location = New System.Drawing.Point(8, 24) Me.ListPcsRun.Name = "ListPcsRun" Me.ListPcsRun.Size = New System.Drawing.Size(200, 327) Me.ListPcsRun.Sorted = True Me.ListPcsRun.TabIndex = 0 ' 'TabPage2 ' Me.TabPage2.BackColor = System.Drawing.Color.FromArgb(CType(CType(185, Byte), In teger), CType(CType(202, Byte), Integer), CType(CType(200, Byte), Integer)) Me.TabPage2.Controls.Add(Me.GroupBox5) Me.TabPage2.Controls.Add(Me.GroupBox4) Me.TabPage2.Controls.Add(Me.GroupBox3) Me.TabPage2.Controls.Add(Me.GroupBox1) Me.TabPage2.Controls.Add(Me.Label11) Me.TabPage2.Controls.Add(Me.GroupBox2) Me.TabPage2.Location = New System.Drawing.Point(4, 22) Me.TabPage2.Name = "TabPage2" Me.TabPage2.Size = New System.Drawing.Size(562, 382) Me.TabPage2.TabIndex = 4 Me.TabPage2.Text = "Update Components" ' 'GroupBox5 ' Me.GroupBox5.Controls.Add(Me.Button11) Me.GroupBox5.Controls.Add(Me.ComboBox5) Me.GroupBox5.Controls.Add(Me.Label19) Me.GroupBox5.Location = New System.Drawing.Point(8, 312) Me.GroupBox5.Name = "GroupBox5" Me.GroupBox5.Size = New System.Drawing.Size(552, 64) Me.GroupBox5.TabIndex = 6 Me.GroupBox5.TabStop = False

Me.GroupBox5.Text = "Audio Updates" ' 'Button11 ' Me.Button11.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button11.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System .Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Button11.Location = New System.Drawing.Point(288, 16) Me.Button11.Name = "Button11" Me.Button11.Size = New System.Drawing.Size(88, 24) Me.Button11.TabIndex = 4 Me.Button11.Text = "Do It!" ' 'ComboBox5 ' Me.ComboBox5.Items.AddRange(New Object() {"WinAmp 2x Skins", "WinAmp 2x Plugins" , "WinAmp 3x Skins", "WinAmp 3x Plugins", "Windows Media", "Real Player"}) Me.ComboBox5.Location = New System.Drawing.Point(88, 16) Me.ComboBox5.Name = "ComboBox5" Me.ComboBox5.Size = New System.Drawing.Size(160, 21) Me.ComboBox5.TabIndex = 1 ' 'Label19 ' Me.Label19.Location = New System.Drawing.Point(16, 24) Me.Label19.Name = "Label19" Me.Label19.Size = New System.Drawing.Size(72, 16) Me.Label19.TabIndex = 0 Me.Label19.Text = "Component:" ' 'GroupBox4 ' Me.GroupBox4.Controls.Add(Me.Button10) Me.GroupBox4.Controls.Add(Me.ComboBox4) Me.GroupBox4.Controls.Add(Me.Label18) Me.GroupBox4.Location = New System.Drawing.Point(8, 240) Me.GroupBox4.Name = "GroupBox4" Me.GroupBox4.Size = New System.Drawing.Size(552, 72) Me.GroupBox4.TabIndex = 5 Me.GroupBox4.TabStop = False Me.GroupBox4.Text = "Video Updates" ' 'Button10 ' Me.Button10.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button10.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System .Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Button10.Location = New System.Drawing.Point(288, 24) Me.Button10.Name = "Button10" Me.Button10.Size = New System.Drawing.Size(88, 24) Me.Button10.TabIndex = 3 Me.Button10.Text = "Do It!" ' 'ComboBox4 ' Me.ComboBox4.Items.AddRange(New Object() {"Windows Media", "DiVx", "Quick Time", "Real Player"}) Me.ComboBox4.Location = New System.Drawing.Point(88, 24) Me.ComboBox4.Name = "ComboBox4" Me.ComboBox4.Size = New System.Drawing.Size(160, 21)

Me.ComboBox4.TabIndex = 1 ' 'Label18 ' Me.Label18.Location = New System.Drawing.Point(16, 32) Me.Label18.Name = "Label18" Me.Label18.Size = New System.Drawing.Size(72, 16) Me.Label18.TabIndex = 0 Me.Label18.Text = "Component:" ' 'GroupBox3 ' Me.GroupBox3.Controls.Add(Me.Button7) Me.GroupBox3.Controls.Add(Me.ComboBox3) Me.GroupBox3.Controls.Add(Me.Label17) Me.GroupBox3.Location = New System.Drawing.Point(8, 184) Me.GroupBox3.Name = "GroupBox3" Me.GroupBox3.Size = New System.Drawing.Size(552, 56) Me.GroupBox3.TabIndex = 4 Me.GroupBox3.TabStop = False Me.GroupBox3.Text = "Driver Updates" ' 'Button7 ' Me.Button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button7.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System. Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Button7.Location = New System.Drawing.Point(288, 16) Me.Button7.Name = "Button7" Me.Button7.Size = New System.Drawing.Size(88, 24) Me.Button7.TabIndex = 2 Me.Button7.Text = "Do It!" ' 'ComboBox3 ' Me.ComboBox3.Items.AddRange(New Object() {"BIOS", "Hard Disks", "IDE Controllers ", "CD-Rom", "CD-R/CD-RW", "DVD Drives", "DVD-RW", "Modem", "ISDN", "DSL Devices ", "Printers", "Plotters", "Scanners", "Monitor", "Mice", "Keyboard"}) Me.ComboBox3.Location = New System.Drawing.Point(88, 16) Me.ComboBox3.Name = "ComboBox3" Me.ComboBox3.Size = New System.Drawing.Size(160, 21) Me.ComboBox3.TabIndex = 1 ' 'Label17 ' Me.Label17.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System. Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label17.Location = New System.Drawing.Point(16, 24) Me.Label17.Name = "Label17" Me.Label17.Size = New System.Drawing.Size(72, 16) Me.Label17.TabIndex = 0 Me.Label17.Text = "Device:" ' 'GroupBox1 ' Me.GroupBox1.Controls.Add(Me.Button8) Me.GroupBox1.Controls.Add(Me.ComboBox1) Me.GroupBox1.Controls.Add(Me.Label12) Me.GroupBox1.Location = New System.Drawing.Point(8, 48) Me.GroupBox1.Name = "GroupBox1"

Me.GroupBox1.Size = New System.Drawing.Size(552, 64) Me.GroupBox1.TabIndex = 2 Me.GroupBox1.TabStop = False Me.GroupBox1.Text = "Microsoft Products" ' 'Button8 ' Me.Button8.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button8.Location = New System.Drawing.Point(288, 16) Me.Button8.Name = "Button8" Me.Button8.Size = New System.Drawing.Size(88, 24) Me.Button8.TabIndex = 3 Me.Button8.Text = "Do It!" ' 'ComboBox1 ' Me.ComboBox1.Items.AddRange(New Object() {"Windows", "Office"}) Me.ComboBox1.Location = New System.Drawing.Point(88, 16) Me.ComboBox1.Name = "ComboBox1" Me.ComboBox1.Size = New System.Drawing.Size(160, 21) Me.ComboBox1.TabIndex = 1 ' 'Label12 ' Me.Label12.Location = New System.Drawing.Point(8, 24) Me.Label12.Name = "Label12" Me.Label12.Size = New System.Drawing.Size(88, 16) Me.Label12.TabIndex = 0 Me.Label12.Text = "Select Product:" ' 'Label11 ' Me.Label11.Location = New System.Drawing.Point(8, 8) Me.Label11.Name = "Label11" Me.Label11.Size = New System.Drawing.Size(536, 32) Me.Label11.TabIndex = 0 Me.Label11.Text = "Welcome to the WinAdmin easy update page. Here you will find the resources to upd" & _ "ate Windows, Anti-Virus, and other commonly used applications. " ' 'GroupBox2 ' Me.GroupBox2.Controls.Add(Me.Button9) Me.GroupBox2.Controls.Add(Me.Label15) Me.GroupBox2.Controls.Add(Me.CheckBox2) Me.GroupBox2.Controls.Add(Me.Label14) Me.GroupBox2.Controls.Add(Me.CheckBox1) Me.GroupBox2.Controls.Add(Me.ComboBox2) Me.GroupBox2.Controls.Add(Me.Label13) Me.GroupBox2.Location = New System.Drawing.Point(8, 112) Me.GroupBox2.Name = "GroupBox2" Me.GroupBox2.Size = New System.Drawing.Size(552, 72) Me.GroupBox2.TabIndex = 3 Me.GroupBox2.TabStop = False Me.GroupBox2.Text = "Anti-Virus" ' 'Button9 ' Me.Button9.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button9.Location = New System.Drawing.Point(288, 24)

Me.Button9.Name = "Button9" Me.Button9.Size = New System.Drawing.Size(88, 24) Me.Button9.TabIndex = 6 Me.Button9.Text = "Do It!" ' 'Label15 ' Me.Label15.Location = New System.Drawing.Point(120, 48) Me.Label15.Name = "Label15" Me.Label15.Size = New System.Drawing.Size(152, 16) Me.Label15.TabIndex = 5 Me.Label15.Text = "Always Use Live Update" ' 'CheckBox2 ' Me.CheckBox2.Location = New System.Drawing.Point(104, 48) Me.CheckBox2.Name = "CheckBox2" Me.CheckBox2.Size = New System.Drawing.Size(16, 16) Me.CheckBox2.TabIndex = 4 Me.CheckBox2.Text = "CheckBox2" ' 'Label14 ' Me.Label14.Location = New System.Drawing.Point(32, 48) Me.Label14.Name = "Label14" Me.Label14.Size = New System.Drawing.Size(72, 16) Me.Label14.TabIndex = 3 Me.Label14.Text = "Live Update" ' 'CheckBox1 ' Me.CheckBox1.Location = New System.Drawing.Point(16, 48) Me.CheckBox1.Name = "CheckBox1" Me.CheckBox1.Size = New System.Drawing.Size(16, 16) Me.CheckBox1.TabIndex = 2 Me.CheckBox1.Text = "CheckBox1" ' 'ComboBox2 ' Me.ComboBox2.Items.AddRange(New Object() {"Norton Anti-Virus", "McCafee Anti-Vir us", "TrendMicro Anti-Virus", "Do Online Scan"}) Me.ComboBox2.Location = New System.Drawing.Point(88, 16) Me.ComboBox2.Name = "ComboBox2" Me.ComboBox2.Size = New System.Drawing.Size(160, 21) Me.ComboBox2.TabIndex = 1 ' 'Label13 ' Me.Label13.Location = New System.Drawing.Point(8, 24) Me.Label13.Name = "Label13" Me.Label13.Size = New System.Drawing.Size(88, 16) Me.Label13.TabIndex = 0 Me.Label13.Text = "Select Product:" ' 'TabPage1 ' Me.TabPage1.BackColor = System.Drawing.Color.FromArgb(CType(CType(185, Byte), In teger), CType(CType(202, Byte), Integer), CType(CType(200, Byte), Integer)) Me.TabPage1.Controls.Add(Me.Button6) Me.TabPage1.Controls.Add(Me.Button5)

Me.TabPage1.Controls.Add(Me.Button4) Me.TabPage1.Controls.Add(Me.Button3) Me.TabPage1.Controls.Add(Me.Button2) Me.TabPage1.Controls.Add(Me.Button1) Me.TabPage1.Controls.Add(Me.Label10) Me.TabPage1.Controls.Add(Me.RichTextBox1) Me.TabPage1.Location = New System.Drawing.Point(4, 22) Me.TabPage1.Name = "TabPage1" Me.TabPage1.Size = New System.Drawing.Size(562, 382) Me.TabPage1.TabIndex = 3 Me.TabPage1.Text = "WinLog" ' 'Button6 ' Me.Button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button6.Location = New System.Drawing.Point(408, 344) Me.Button6.Name = "Button6" Me.Button6.Size = New System.Drawing.Size(72, 24) Me.Button6.TabIndex = 7 Me.Button6.Text = "&Restore" ' 'Button5 ' Me.Button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button5.Location = New System.Drawing.Point(328, 344) Me.Button5.Name = "Button5" Me.Button5.Size = New System.Drawing.Size(72, 24) Me.Button5.TabIndex = 6 Me.Button5.Text = "&Clear" ' 'Button4 ' Me.Button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button4.Location = New System.Drawing.Point(248, 344) Me.Button4.Name = "Button4" Me.Button4.Size = New System.Drawing.Size(72, 24) Me.Button4.TabIndex = 5 Me.Button4.Text = "&Redo" ' 'Button3 ' Me.Button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button3.Location = New System.Drawing.Point(168, 344) Me.Button3.Name = "Button3" Me.Button3.Size = New System.Drawing.Size(72, 24) Me.Button3.TabIndex = 4 Me.Button3.Text = "&Undo" ' 'Button2 ' Me.Button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button2.Location = New System.Drawing.Point(88, 344) Me.Button2.Name = "Button2" Me.Button2.Size = New System.Drawing.Size(72, 24) Me.Button2.TabIndex = 3 Me.Button2.Text = "Get &Info" ' 'Button1 ' Me.Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat

Me.Button1.Location = New System.Drawing.Point(8, 344) Me.Button1.Name = "Button1" Me.Button1.Size = New System.Drawing.Size(72, 24) Me.Button1.TabIndex = 2 Me.Button1.Text = "&Save" ' 'Label10 ' Me.Label10.Location = New System.Drawing.Point(8, 8) Me.Label10.Name = "Label10" Me.Label10.Size = New System.Drawing.Size(536, 32) Me.Label10.TabIndex = 1 Me.Label10.Text = "Record changes made to your computer here. Also, you may opti onally launch System" & _ " Restore to fix problems." ' 'RichTextBox1 ' Me.RichTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.RichTextBox1.Location = New System.Drawing.Point(8, 40) Me.RichTextBox1.Name = "RichTextBox1" Me.RichTextBox1.Size = New System.Drawing.Size(536, 296) Me.RichTextBox1.TabIndex = 0 Me.RichTextBox1.Text = "" ' 'TabPage4 ' Me.TabPage4.BackColor = System.Drawing.Color.FromArgb(CType(CType(185, Byte), In teger), CType(CType(202, Byte), Integer), CType(CType(200, Byte), Integer)) Me.TabPage4.Controls.Add(Me.GroupBox11) Me.TabPage4.Controls.Add(Me.GroupBox10) Me.TabPage4.Controls.Add(Me.GroupBox9) Me.TabPage4.Controls.Add(Me.Label23) Me.TabPage4.Location = New System.Drawing.Point(4, 22) Me.TabPage4.Name = "TabPage4" Me.TabPage4.Size = New System.Drawing.Size(562, 382) Me.TabPage4.TabIndex = 6 Me.TabPage4.Text = "WinTech" ' 'GroupBox11 ' Me.GroupBox11.Controls.Add(Me.RichTextBox2) Me.GroupBox11.Controls.Add(Me.Label24) Me.GroupBox11.Location = New System.Drawing.Point(8, 128) Me.GroupBox11.Name = "GroupBox11" Me.GroupBox11.Size = New System.Drawing.Size(552, 248) Me.GroupBox11.TabIndex = 3 Me.GroupBox11.TabStop = False Me.GroupBox11.Text = "Results" ' 'RichTextBox2 ' Me.RichTextBox2.Location = New System.Drawing.Point(8, 16) Me.RichTextBox2.Name = "RichTextBox2" Me.RichTextBox2.Size = New System.Drawing.Size(536, 224) Me.RichTextBox2.TabIndex = 1 Me.RichTextBox2.Text = "" ' 'Label24 '

Me.Label24.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System. Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label24.Location = New System.Drawing.Point(176, 104) Me.Label24.Name = "Label24" Me.Label24.Size = New System.Drawing.Size(248, 24) Me.Label24.TabIndex = 0 Me.Label24.Text = "Search Results Will Be Displayed Here..." ' 'GroupBox10 ' Me.GroupBox10.Controls.Add(Me.Button31) Me.GroupBox10.Controls.Add(Me.TextBox3) Me.GroupBox10.Location = New System.Drawing.Point(280, 40) Me.GroupBox10.Name = "GroupBox10" Me.GroupBox10.Size = New System.Drawing.Size(280, 88) Me.GroupBox10.TabIndex = 2 Me.GroupBox10.TabStop = False Me.GroupBox10.Text = "Advanced Search" ' 'Button31 ' Me.Button31.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button31.Location = New System.Drawing.Point(168, 48) Me.Button31.Name = "Button31" Me.Button31.Size = New System.Drawing.Size(96, 24) Me.Button31.TabIndex = 2 Me.Button31.Text = "Go" ' 'TextBox3 ' Me.TextBox3.Location = New System.Drawing.Point(8, 24) Me.TextBox3.Name = "TextBox3" Me.TextBox3.Size = New System.Drawing.Size(256, 20) Me.TextBox3.TabIndex = 0 ' 'GroupBox9 ' Me.GroupBox9.Controls.Add(Me.Button26) Me.GroupBox9.Controls.Add(Me.ComboBox6) Me.GroupBox9.Location = New System.Drawing.Point(8, 40) Me.GroupBox9.Name = "GroupBox9" Me.GroupBox9.Size = New System.Drawing.Size(272, 88) Me.GroupBox9.TabIndex = 1 Me.GroupBox9.TabStop = False Me.GroupBox9.Text = "Common Problems" ' 'Button26 ' Me.Button26.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button26.Location = New System.Drawing.Point(160, 48) Me.Button26.Name = "Button26" Me.Button26.Size = New System.Drawing.Size(96, 24) Me.Button26.TabIndex = 1 Me.Button26.Text = "Go" ' 'ComboBox6 ' Me.ComboBox6.Items.AddRange(New Object() {"Device Manager Code 1 (XP)", "Device Manager Code 2 (XP)", "Device Manager Code 3 (XP)", "Device Manager Code 4 (XP)" , "Device Manager Code 5 (XP)", "Device Manager Code 6 (XP)", "Device Manager Co

de 7 (XP)", "Device Manager Code 8 (XP)", "Device Manager Code 9 (XP)", "Device Manager Code 10 (XP)", "Device Manager Code 11 (XP)", "Device Manager Code 12 (X P)", "Device Manager Code 13 (XP)", "Device Manager Code 14 (XP)", "Device Manag er Code 15 (XP)", "Device Manager Code 16 (XP)", "Device Manager Code 17 (XP)", "Device Manager Code 18 (XP)", "Device Manager Code 19 (XP)", "Device Manager Co de 20 (XP)", "Device Manager Code 21 (XP)", "Device Manager Code 22 (XP)", "Devi ce Manager Code 23 (XP)", "Device Manager Code 24 (XP)", "Device Manager Code 25 (XP)", "Device Manager Code 26 (XP)", "Device Manager Code 27 (XP)", "Device Ma nager Code 28 (XP)", "Device Manager Code 29 (XP)", "Device Manager Code 30 (XP) ", "Device Manager Code 31 (XP)", "Device Manager Code 32 (XP)", "Device Manager Code 33 (XP)", "Device Manager Code 34 (XP)", "Device Manager Code 35 (XP)", "D evice Manager Code 36 (XP)", "Device Manager Code 37 (XP)", "Device Manager Code 38 (XP)", "Device Manager Code 39 (XP)"}) Me.ComboBox6.Location = New System.Drawing.Point(8, 24) Me.ComboBox6.Name = "ComboBox6" Me.ComboBox6.Size = New System.Drawing.Size(248, 21) Me.ComboBox6.TabIndex = 0 Me.ComboBox6.Text = "Select" ' 'Label23 ' Me.Label23.Location = New System.Drawing.Point(8, 8) Me.Label23.Name = "Label23" Me.Label23.Size = New System.Drawing.Size(552, 32) Me.Label23.TabIndex = 0 Me.Label23.Text = "Having computer problems? Cannot find the error codes? Want t o know what they mea" & _ "n? Use this feature of WinAdmin. Just search for the error below." ' 'ButtonStartProcess ' Me.ButtonStartProcess.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.ButtonStartProcess.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.2 5!) Me.ButtonStartProcess.Location = New System.Drawing.Point(104, 456) Me.ButtonStartProcess.Name = "ButtonStartProcess" Me.ButtonStartProcess.Size = New System.Drawing.Size(96, 24) Me.ButtonStartProcess.TabIndex = 5 Me.ButtonStartProcess.Text = "&Start a Process" ' 'OpenFile ' ' 'ButtonClose ' Me.ButtonClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.ButtonClose.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!) Me.ButtonClose.Location = New System.Drawing.Point(208, 456) Me.ButtonClose.Name = "ButtonClose" Me.ButtonClose.Size = New System.Drawing.Size(88, 24) Me.ButtonClose.TabIndex = 4 Me.ButtonClose.Text = "&Exit" ' 'txtMachineName ' Me.txtMachineName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.txtMachineName.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!) Me.txtMachineName.Location = New System.Drawing.Point(168, 424) Me.txtMachineName.Name = "txtMachineName" Me.txtMachineName.Size = New System.Drawing.Size(144, 20)

Me.txtMachineName.TabIndex = 6 ' 'ButtonLoadData ' Me.ButtonLoadData.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.ButtonLoadData.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!) Me.ButtonLoadData.Location = New System.Drawing.Point(8, 456) Me.ButtonLoadData.Name = "ButtonLoadData" Me.ButtonLoadData.Size = New System.Drawing.Size(88, 24) Me.ButtonLoadData.TabIndex = 3 Me.ButtonLoadData.Text = "&Load Data" ' 'MainMenu1 ' Me.MainMenu1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem 1, Me.MenuItem3, Me.MenuItem6}) ' 'MenuItem1 ' Me.MenuItem1.Index = 0 Me.MenuItem1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem 2, Me.MenuItem7, Me.MenuItem8, Me.MenuItem9}) Me.MenuItem1.Text = "&File" ' 'MenuItem2 ' Me.MenuItem2.Index = 0 Me.MenuItem2.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem 10, Me.MenuItem11}) Me.MenuItem2.Text = "HardWare Crawler" ' 'MenuItem10 ' Me.MenuItem10.Index = 0 Me.MenuItem10.Text = "Activate Crawler" ' 'MenuItem11 ' Me.MenuItem11.Index = 1 Me.MenuItem11.Text = "Show Crawler Results" ' 'MenuItem7 ' Me.MenuItem7.Index = 1 Me.MenuItem7.Text = "Settin&gs" ' 'MenuItem8 ' Me.MenuItem8.Index = 2 Me.MenuItem8.Text = "Re&ports" ' 'MenuItem9 ' Me.MenuItem9.Index = 3 Me.MenuItem9.Text = "E&xit" ' 'MenuItem3 ' Me.MenuItem3.Index = 1 Me.MenuItem3.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem

4}) Me.MenuItem3.Text = "&About" ' 'MenuItem4 ' Me.MenuItem4.Index = 0 Me.MenuItem4.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem 5}) Me.MenuItem4.Text = "Info" ' 'MenuItem5 ' Me.MenuItem5.Index = 0 Me.MenuItem5.Text = "&Version" ' 'MenuItem6 ' Me.MenuItem6.Index = 2 Me.MenuItem6.Text = "" ' 'PictureBox1 ' Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Dr awing.Image) Me.PictureBox1.Location = New System.Drawing.Point(456, 424) Me.PictureBox1.Name = "PictureBox1" Me.PictureBox1.Size = New System.Drawing.Size(104, 56) Me.PictureBox1.TabIndex = 7 Me.PictureBox1.TabStop = False ' 'Label16 ' Me.Label16.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontS tyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label16.Location = New System.Drawing.Point(376, 424) Me.Label16.Name = "Label16" Me.Label16.Size = New System.Drawing.Size(80, 16) Me.Label16.TabIndex = 8 Me.Label16.Text = "Powered By:" ' 'MainForm ' Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13) Me.BackColor = System.Drawing.SystemColors.Control Me.ClientSize = New System.Drawing.Size(578, 491) Me.Controls.Add(Me.Label16) Me.Controls.Add(Me.PictureBox1) Me.Controls.Add(Me.ButtonStartProcess) Me.Controls.Add(Me.ButtonClose) Me.Controls.Add(Me.ButtonLoadData) Me.Controls.Add(Me.txtMachineName) Me.Controls.Add(Me.Label4) Me.Controls.Add(Me.tabControl1) Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle Me.HelpButton = True Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon) Me.MaximizeBox = False Me.Menu = Me.MainMenu1 Me.Name = "MainForm" Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen

Me.Text = "NETWORK SNIFFER" Me.tabDrivers.ResumeLayout(False) Me.tabControl1.ResumeLayout(False) Me.tabServices.ResumeLayout(False) Me.TabPage3.ResumeLayout(False) Me.GroupBox8.ResumeLayout(False) Me.GroupBox8.PerformLayout() Me.GroupBox7.ResumeLayout(False) Me.GroupBox6.ResumeLayout(False) Me.tabProcess.ResumeLayout(False) Me.TabPage2.ResumeLayout(False) Me.GroupBox5.ResumeLayout(False) Me.GroupBox4.ResumeLayout(False) Me.GroupBox3.ResumeLayout(False) Me.GroupBox1.ResumeLayout(False) Me.GroupBox2.ResumeLayout(False) Me.TabPage1.ResumeLayout(False) Me.TabPage4.ResumeLayout(False) Me.GroupBox11.ResumeLayout(False) Me.GroupBox10.ResumeLayout(False) Me.GroupBox10.PerformLayout() Me.GroupBox9.ResumeLayout(False) CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit() Me.ResumeLayout(False) Me.PerformLayout() End Sub 'InitializeComponent #End Region ' The event assigned to the openFile control. Protected Sub openFile_FileOk(ByVal Sender As Object, ByVal e As System.Componen tModel.CancelEventArgs) Handles OpenFile.FileOk If Not (ProcessControlMgr Is Nothing) Then Try 'try to start a new process using the Process component ProcessControlMgr.StartProcess(OpenFile.FileName) Catch End Try End If 'Its possible since one might not have the permission to start a process on a certain machine End Sub 'openFile_FileOk ' Call the method that fills up the services, drivers and processes Protected Sub ButtonLoadData_Click(ByVal Sender As Object, ByVal e As System.Eve ntArgs) Handles ButtonLoadData.Click On Error Resume Next ButtonStartProcess.Enabled = True LoadData() End Sub 'ButtonLoadData_Click ' Loading all services, Drivers and Processes running on the selected machine Public Sub LoadData() Dim TempMachineName As String = GetMachineName() 'clear up the serviceManager If Not (ServiceControlMgr Is Nothing) Then ServiceControlMgr.Clear() End If ServiceControlMgr = Nothing

ServiceControlMgr = New ServiceControllerManager(ListSrvRun, ListSrvStopped, Lis tSrvPaused, TempMachineName) 'Clear up the driver manager If Not (DriverControlMgr Is Nothing) Then DriverControlMgr.Clear() End If DriverControlMgr = Nothing DriverControlMgr = New DriverControllerManager(ListDrvRun, ListDrvStopped, ListD rvPaused, TempMachineName) 'Clear the process manager If Not (ProcessControlMgr Is Nothing) Then ProcessControlMgr.Clear() End If ProcessControlMgr = Nothing ProcessControlMgr = New ProcessControllerManager(ListPcsRun, ListPcs, TempMachin eName) End Sub 'LoadData ' returns the name of the local machine Public Function GetLocalMachine() As String Return System.Environment.MachineName End Function 'GetLocalMachine ' check wheter the selected machine exists in the Domain ' you might want to change this to more complex code for machine name check Public Function GetMachineName() As String If txtMachineName.Text.Equals("") Then 'machineName field is empty, take the local machine txtMachineName.Text = GetLocalMachine() txtMachineName.Focus() End If Return txtMachineName.Text End Function 'GetMachineName 'Exit the app Private Sub ButtonClose_Click(ByVal Sender As System.Object, ByVal e As System.E ventArgs) Handles ButtonClose.Click 'Make the Window "Fade away" Dim d As Double For d = 1 To 0 + 0.2 Step -0.2 System.Threading.Thread.Sleep(50) Application.DoEvents() Me.Opacity = d Me.Refresh() Next d Environment.Exit(0) End Sub 'Launched Open File Dialouge Private Sub ButtonStartProcess_Click(ByVal Sender As System.Object, ByVal e As S ystem.EventArgs) Handles ButtonStartProcess.Click On Error Resume Next OpenFile.Filter = "exe files (*.exe)|*.exe|bat files (*.bat)|*.bat|com files (*. com)|*.com" OpenFile.ShowDialog() End Sub Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As System.Eve ntArgs) Handles MenuItem2.Click

End Sub Private Sub MenuItem7_Click(ByVal sender As System.Object, ByVal e As System.Eve ntArgs) On Error Resume Next Dim Retval As Long Shell("C:\Program Files\Internet Explorer\IEXPLORE.exe http://www.resiware.com", AppWinStyle.NormalFocus) End Sub Private Sub MenuItem5_Click(ByVal sender As System.Object, ByVal e As System.Eve ntArgs) Handles MenuItem5.Click Dim Form1 As New FrmAbout Form1.Show() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Event Args) Handles Button1.Click On Error Resume Next RichTextBox1.SaveFile("C:\wainventory.rtf") End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.Event Args) Handles Button2.Click On Error Resume Next RichTextBox1.LoadFile("C:\wainventory.rtf") End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.Event Args) Handles Button3.Click RichTextBox1.Undo() End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.Event Args) Handles Button4.Click RichTextBox1.Redo() End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.Event Args) Handles Button5.Click RichTextBox1.Clear() End Sub Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.Event Args) Handles Button6.Click On Error Resume Next Shell("C:\Windows\System32\restore\rstrui.exe") End Sub Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.Event Args) Handles Button9.Click On Error Resume Next CheckBox2.Enabled = False If ComboBox2.Text = "" Then MsgBox("Please Select A Anti-Virus Product", MsgBoxS tyle.Critical, "Network Crawler Error") If ComboBox2.Text = "Norton Anti-Virus" Then CheckBox1.Checked = True And Shell( "C:\Program Files\Symantec\LiveUpdate\LUALL.exe", AppWinStyle.NormalFocus) If ComboBox2.Text = "McCafee Anti-Virus" Then CheckBox1.Enabled = False And Chec kBox2.Enabled = False And Shell("C:\Program Files\Internet Explorer\IEXPLORE.exe http://www.mcafeeb2b.com/naicommon/download/dats/find.asp", AppWinStyle.NormalF

ocus) If ComboBox2.Text = "TrendMicro Anti-Virus" Then CheckBox1.Enabled = False And C heckBox2.Enabled = False And Shell("C:\Program Files\Internet Explorer\IEXPLORE. exe http://www.trendmicro.com/download/", AppWinStyle.NormalFocus) If ComboBox2.Text = "Do Online Scan" Then CheckBox1.Enabled = False And Shell("C :\Program Files\Internet Explorer\IEXPLORE.exe http://housecall.trendmicro.com/h ousecall/start_corp.asp", AppWinStyle.NormalFocus) End Sub Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.Event Args) End Sub Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.Event Args) Handles Button8.Click On Error Resume Next If ComboBox1.Text = "" Then MsgBox("Please Select A Microsoft Product", MsgBoxSt yle.Critical, "Network Crawler Error") If ComboBox1.Text = "Windows" Then Shell("C:\Program Files\Internet Explorer\IEX PLORE.exe http://windowsupdate.microsoft.com", AppWinStyle.NormalFocus) If ComboBox1.Text = "Office" Then Shell("C:\Program Files\Internet Explorer\IEXP LORE.exe http://windowsupdate.microsoft.com", AppWinStyle.NormalFocus) End Sub Private Sub Button7_Click_1(ByVal sender As System.Object, ByVal e As System.Eve ntArgs) On Error Resume Next Dim form1 As New FrmAbout form1.Show() End Sub Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) On Error Resume Next Shell("C:\Internet Explorer\IEXPLORE.exe http://www.NetworkCrawler.com/Netcrawl/ update.html", AppWinStyle.NormalFocus) End Sub Private Sub Button7_Click_2(ByVal sender As System.Object, ByVal e As System.Eve ntArgs) Handles Button7.Click On Error Resume Next If ComboBox3.Text = "" Then MsgBox("Please Select The Device Type You Want To Up date", MsgBoxStyle.Critical, "Network Crawler Error") End Sub Private Sub Button10_Click_1(ByVal sender As System.Object, ByVal e As System.Ev entArgs) Handles Button10.Click On Error Resume Next If ComboBox3.Text = "" Then MsgBox("Please Select The Video Component/Player You Want To Update", MsgBoxStyle.Critical, "NetworkCrawler Error") If ComboBox3.Text = "Windows Media" Then Shell("C:\Program Files\Internet Explorer\IEXPLORE.exe http://www.windowsmedia.c om") End If If ComboBox3.Text = "DiVx" Then Shell("C:\Program Files\Internet Explorer\IEXPLORE.exe http://www.divix.com") End If If ComboBox3.Text = "Quick Time" Then

Shell("C:\Program Files\Internet Explorer\IEXPLORE.exe http://www.quicktime.com" ) End If If ComboBox3.Text = "Real Player" Then Shell("C:\Program Files\Internet Explorer\IEXPLORE.exe http://www.real.com") End If End Sub Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button11.Click On Error Resume Next If ComboBox4.Text = "" Then MsgBox("Please Select The Audio Component/Player You Want To Update", MsgBoxStyle.Critical, "Network Crawler Error") If ComboBox4.Text = "WinAmp 2x Skins" Then Shell("C:\Program Files\Internet Explorer\IEXPLORE.exe http://classic.winamp.com /skins/") End If If ComboBox4.Text = "WinAmp 2x Plugins" Then Shell("C:\Program Files\Internet Explorer\IEXPLORE.exe http://classic.winamp.com /plugins/") End If If ComboBox4.Text = "WinAmp 3x Skins" Then Shell("C:\Program Files\Internet Explorer\IEXPLORE.exe http://www.winamp.com/ski ns/") End If If ComboBox4.Text = "WinAmp 3x Plugins" Then Shell("C:\Program Files\Internet Explorer\IEXPLORE.exe http://www.winamp.com/plu gins/") End If If ComboBox4.Text = "Windows Media" Then Shell("C:\Program Files\Internet Explorer\IEXPLORE.exe http://www.windowsmedia.c om") End If If ComboBox4.Text = "Real Player" Then Shell("C:\Program Files\Internet Explorer\IEXPLORE.exe http://www.real.com") End If End Sub Private Sub Button21_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button21.Click On Error Resume Next Dim retval As Long Shell("C:\WINDOWS\system32\control.exe time.cpl") End Sub Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button13.Click On Error Resume Next Dim retval As Long Shell("F:\WINDOWS\system32\control.exe hdwwiz.cpl") End Sub Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.Event Args) Handles MyBase.Load On Error Resume Next Button12.Enabled = False Button13.Enabled = False Button14.Enabled = False Button15.Enabled = False Button16.Enabled = False Button17.Enabled = False

Button18.Enabled = False Button19.Enabled = False Button20.Enabled = False Button21.Enabled = False Button22.Enabled = False Button23.Enabled = False Button24.Enabled = False Button25.Enabled = False Button27.Enabled = False Button28.Enabled = False Button29.Enabled = False RichTextBox2.Visible = False ComboBox3.Enabled = False ' Drivers section disabled Button7.Enabled = False 'Cannot execute driver request Label17.Enabled = False 'Disabled Section See Above ^ tabControl1.TabPages.RemoveAt(tabControl1.TabPages.Count - 1) End Sub Private Sub Button30_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button30.Click On Error Resume Next 'TextBox2.Text = "Windows " + TextBox1.Text + " Control Panel" If TextBox2.Text = "" Then MsgBox("Please Enter A Valid Windows Version Such As 98 or Me.", MsgBoxStyle.Cri tical, "Network Crawler Error") TextBox2.Text = "Enter Windows Version" End If If TextBox2.Text = "Version (IE, 98, Me, 2000, XP)" Then MsgBox("Please Enter A Valid Windows Version Such As 98 or Me.", MsgBoxStyle.Cri tical, "Network Crawler Error") TextBox2.Text = "Enter Windows Version" End If If TextBox2.Text = "98" Then Button12.Enabled = True Button13.Enabled = True Button14.Enabled = True Button15.Enabled = False Button16.Enabled = False Button17.Enabled = False Button18.Enabled = False Button19.Enabled = False Button20.Enabled = True Button21.Enabled = True Button22.Enabled = True Button23.Enabled = True Button24.Enabled = False Button25.Enabled = False Button27.Enabled = False Button28.Enabled = False Button29.Enabled = False End If If TextBox2.Text = "Me" Then Button12.Enabled = True Button13.Enabled = True Button14.Enabled = True Button15.Enabled = False Button16.Enabled = False Button17.Enabled = False Button18.Enabled = False

Button19.Enabled Button20.Enabled Button21.Enabled Button22.Enabled Button23.Enabled Button24.Enabled Button25.Enabled Button27.Enabled Button28.Enabled Button29.Enabled End If If TextBox2.Text Button12.Enabled Button13.Enabled Button14.Enabled Button15.Enabled Button16.Enabled Button17.Enabled Button18.Enabled Button19.Enabled Button20.Enabled Button21.Enabled Button22.Enabled Button23.Enabled Button24.Enabled Button25.Enabled Button27.Enabled Button28.Enabled Button29.Enabled End If If TextBox2.Text Button12.Enabled Button13.Enabled Button14.Enabled Button15.Enabled Button16.Enabled Button17.Enabled Button18.Enabled Button19.Enabled Button20.Enabled Button21.Enabled Button22.Enabled Button23.Enabled Button24.Enabled Button25.Enabled Button27.Enabled Button28.Enabled Button29.Enabled End If If TextBox2.Text Button12.Enabled Button13.Enabled Button14.Enabled Button15.Enabled Button16.Enabled Button17.Enabled Button18.Enabled Button19.Enabled

= = = = = = =

False True True True True False False

= False = False = False = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = "2000" Then True True True True True False False False True True True True True False True True False "XP" Then True True True True True True True True True True True True True True True True True "xp" Then True True True True True True True True

Button20.Enabled = True Button21.Enabled = True Button22.Enabled = True Button23.Enabled = True Button24.Enabled = True Button25.Enabled = True Button27.Enabled = True Button28.Enabled = True Button29.Enabled = True End If If TextBox2.Text = "me" Then Button12.Enabled = True Button13.Enabled = True Button14.Enabled = True Button15.Enabled = False Button16.Enabled = False Button17.Enabled = False Button18.Enabled = False Button19.Enabled = False Button20.Enabled = True Button21.Enabled = True Button22.Enabled = True Button23.Enabled = True Button24.Enabled = False Button25.Enabled = False Button27.Enabled = False Button28.Enabled = False Button29.Enabled = False End If If TextBox2.Text = "ME" Then Button12.Enabled = True Button13.Enabled = True Button14.Enabled = True Button15.Enabled = False Button16.Enabled = False Button17.Enabled = False Button18.Enabled = False Button19.Enabled = False Button20.Enabled = True Button21.Enabled = True Button22.Enabled = True Button23.Enabled = True Button24.Enabled = False Button25.Enabled = False Button27.Enabled = False Button28.Enabled = False Button29.Enabled = False End If If TextBox2.Text = "95" Then MsgBox("Windows 95 Is Not Supported By Network Crawler.", MsgBoxStyle.Critical, "Network Crawler Compatibility") End If End Sub Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button12.Click On Error Resume Next If TextBox1.Text = "2000" Then Shell("C:\WINNT\system32\control.exe access.cpl")

Else Shell("C:\Windows\system32\control.exe access.cpl") End If End Sub Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button14.Click On Error Resume Next Dim retval As Long If TextBox1.Text = "2000" Then Shell("C:\WINNT\system32\control.exe appwiz.cpl") Else Shell("C:\WINDOWS\system32\control.exe appwiz.cpl") End If End Sub Private Sub Button15_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button15.Click On Error Resume Next Dim retval As Long If TextBox1.Text = "2000" Then Shell("C:\WINNT\system32\control.exe ncpa.cpl") Else Shell("C:\WINDOWS\system32\control.exe ncpa.cpl") End If End Sub Private Sub Button16_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button16.Click On Error Resume Next Dim retval As Long If TextBox1.Text = "2000" Then Shell("C:\WINNT\system32\control.exe desk.cpl") Else Shell("C:\WINDOWS\system32\control.exe desk.cpl") End If End Sub Private Sub Button17_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button17.Click On Error Resume Next Dim retval As Long If TextBox1.Text = "2000" Then Shell("C:\WINNT\system32\control.exe sysdm.cpl") Else Shell("C:\WINDOWS\system32\control.exe sysdm.cpl") End If End Sub Private Sub Button19_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button19.Click On Error Resume Next Dim retval As Long If TextBox1.Text = "2000" Then Shell("C:\WINNT\system32\control.exe joy.cpl") Else Shell("C:\WINDOWS\system32\control.exe joy.cpl")

End If End Sub Private Sub Button20_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button20.Click On Error Resume Next Dim retval As Long If TextBox1.Text = "2000" Then Shell("C:\WINNT\system32\control.exe inetcpl.cpl") Else Shell("C:\WINDOWS\system32\control.exe inetcpl.cpl") End If End Sub Private Sub Button22_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button22.Click On Error Resume Next Dim retval As Long If TextBox1.Text = "2000" Then Shell("C:\WINNT\system32\control.exe main.cpl") Else Shell("C:\WINDOWS\system32\control.exe main.cpl") End If End Sub Private Sub Button23_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button23.Click On Error Resume Next Dim retval As Long If TextBox1.Text = "2000" Then Shell("C:\WINNT\system32\control.exe inetcpl.cpl") Else Shell("C:\WINDOWS\system32\control.exe inetcpl.cpl") End If End Sub Private Sub Button24_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button24.Click On Error Resume Next Dim retval As Long If TextBox1.Text = "2000" Then Shell("C:\WINNT\system32\control.exe telephon.cpl") Else Shell("C:\WINDOWS\system32\control.exe telephon.cpl") End If End Sub Private Sub Button25_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button25.Click On Error Resume Next Dim retval As Long If TextBox1.Text = "2000" Then Shell("C:\WINDOWS\system32\control.exe powercfg.cpl") Else Shell("C:\WINDOWS\system32\control.exe powercfg.cpl") End If

End Sub Private Sub Button27_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button27.Click On Error Resume Next Dim retval As Long If TextBox1.Text = "2000" Then Shell("C:\WINNT\system32\control.exe intl.cpl") Else Shell("C:\WINDOWS\system32\control.exe intl.cpl") End If End Sub Private Sub Button28_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button28.Click On Error Resume Next Dim retval As Long If TextBox1.Text = "2000" Then Shell("C:\WINNT\system32\control.exe mmsys.cpl") Else Shell("C:\WINDOWS\system32\control.exe mmsys.cpl") End If End Sub Private Sub Button29_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button29.Click On Error Resume Next Dim retval As Long If TextBox1.Text = "2000" Then Shell("C:\WINNT\system32\control.exe nusrmgr.cpl") Else Shell("C:\WINDOWS\system32\control.exe nusrmgr.cpl") End If End Sub Private Sub Button26_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button26.Click Label24.Visible = False If ComboBox6.Text = "Select" Then MsgBox("Please Select A WinTech Topic.", MsgBoxStyle.Exclamation, "Network Sniff er Crawler Error") End If 'Next statment enable RichTextBox2.Visible = True with valid search string . End Sub Private Sub Button31_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button31.Click Label24.Visible = False If TextBox3.Text = "" Then MsgBox("Please Type An Error Code Or Select WinTech Topic.", MsgBoxStyle.Exclama tion, "Network Sniffer Crawler Error") End If End Sub Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As Syste m.EventArgs) Handles TextBox1.TextChanged

End Sub Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.Eve ntArgs) Handles MenuItem1.Click End Sub Private Sub MenuItem7_Click_1(ByVal sender As System.Object, ByVal e As System.E ventArgs) Handles MenuItem7.Click Dim frm As New frmMain frm.Show() End Sub Private Sub tabServices_Click(ByVal sender As System.Object, ByVal e As System.E ventArgs) Handles tabServices.Click End Sub Private Sub Button32_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button32.Click Dim con As New OleDbConnection("provider=Microsoft.jet.oledb.4.0; user id = Admi n; data source = " & Application.StartupPath & "\NW.mdb") Dim cmd As New OleDbCommand Dim x, ctr, i As Integer Dim sql, ip, sname As String Dim arr() As String If con.State = ConnectionState.Closed Then con.Open() arr = txtMachineName.Text.Split(".") If UBound(arr) = 3 Then Dim dr As OleDbDataReader sql = "select sysname from rungserv where IPAddress ='" & txtMachineName.Tex t & "'" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql dr = cmd.ExecuteReader If dr.Read Then sname = dr.Item(0) Else sname = " " End If dr.Close() sql = "delete from rungserv where sysname = '" & txtMachineName.Text & " '" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql i = cmd.ExecuteNonQuery sql = "delete from stopserv where sysname = '" & txtMachineName.Text & " '" For x = 0 To ListSrvRun.Items.Count - 1 sql = "insert into RungServ values ('" & txtMachineName.Text & "','" &am

p; sname & "','" & ListSrvRun.Items(x) & "')" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql i = cmd.ExecuteNonQuery Next For x = 0 To ListSrvStopped.Items.Count - 1 sql = "insert into StopServ values ('" & txtMachineName.Text & "','" &am p; sname & "','" & ListSrvStopped.Items(x) & "')" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql Try i = cmd.ExecuteNonQuery Catch ex As Exception MsgBox(ex.Message) End Try Next 'MsgBox("Its an IP") Else Dim dr As OleDbDataReader sql = "select IPAddress from rungserv where sysname ='" & txtMachineName.Tex t & "'" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql dr = cmd.ExecuteReader If dr.Read Then ip = dr.Item(0) Else ip = "0.0.0.0" End If dr.Close() sql = "delete from rungserv where sysname = '" & txtMachineName.Text & " '" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql i = cmd.ExecuteNonQuery sql = "delete from stopserv where sysname = '" & txtMachineName.Text & " '" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql i = cmd.ExecuteNonQuery For x = 0 To ListSrvRun.Items.Count - 1 sql = "insert into RungServ values ('" & ip & "','" & txtMachineName .Text & "','" & ListSrvRun.Items(x) & "')" cmd.Connection = con cmd.CommandType = CommandType.Text

cmd.CommandText = sql Try i = cmd.ExecuteNonQuery Catch ex As Exception MsgBox(ex.Message) End Try Next For x = 0 To ListSrvStopped.Items.Count - 1 'sql = "insert into RungServ (SysName,RunningServices) values ('" & txtMachi neName.Text & "','" & ListSrvRun.Items(x) & "')" sql = "insert into StopServ values ('" & ip & " ','" & txtMachineNam e.Text & "','" & ListSrvStopped.Items(x) & "')" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql Try i = cmd.ExecuteNonQuery Catch ex As Exception MsgBox(ex.Message) End Try Next End If End Sub Private Sub Button33_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button33.Click Dim con As New OleDbConnection("provider=Microsoft.jet.oledb.4.0; user id = Admi n; data source = " & Application.StartupPath & "\NW.mdb") Dim cmd As New OleDbCommand Dim x, ctr, i As Integer Dim sql, ip, sname As String Dim arr() As String If con.State = ConnectionState.Closed Then con.Open() arr = txtMachineName.Text.Split(".") If UBound(arr) = 3 Then Dim dr As OleDbDataReader sql = "select sysname from rungdrv where IPAddress ='" & txtMachineName.Text & "'" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql dr = cmd.ExecuteReader If dr.Read Then sname = dr.Item(0) Else sname = " " End If dr.Close() sql = "delete from rungdrv where sysname = '" & txtMachineName.Text & "' " cmd.Connection = con

cmd.CommandType = CommandType.Text cmd.CommandText = sql i = cmd.ExecuteNonQuery sql = "delete from stopdrv where sysname = '" & txtMachineName.Text & "' " For x = 0 To ListDrvRun.Items.Count - 1 sql = "insert into Rungdrv values ('" & txtMachineName.Text & "','" &amp ; sname & "','" & ListDrvRun.Items(x) & "')" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql i = cmd.ExecuteNonQuery Next For x = 0 To ListDrvStopped.Items.Count - 1 sql = "insert into Stopdrv values ('" & txtMachineName.Text & "','" &amp ; sname & "','" & ListDrvStopped.Items(x) & "')" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql Try i = cmd.ExecuteNonQuery Catch ex As Exception MsgBox(ex.Message) End Try Next 'MsgBox("Its an IP") Else Dim dr As OleDbDataReader sql = "select IPAddress from rungdrv where sysname ='" & txtMachineName.Text & "'" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql dr = cmd.ExecuteReader If dr.Read Then ip = dr.Item(0) Else ip = "0.0.0.0" End If dr.Close() sql = "delete from rungdrv where sysname = '" & txtMachineName.Text & "' " cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql i = cmd.ExecuteNonQuery sql = "delete from stopdrv where sysname = '" & txtMachineName.Text & "' " cmd.Connection = con

cmd.CommandType = CommandType.Text cmd.CommandText = sql i = cmd.ExecuteNonQuery For x = 0 To ListDrvRun.Items.Count - 1 sql = "insert into Rungdrv values ('" & ip & "','" & txtMachineName. Text & "','" & ListDrvRun.Items(x) & "')" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql Try i = cmd.ExecuteNonQuery Catch ex As Exception MsgBox(ex.Message) End Try Next For x = 0 To ListDrvStopped.Items.Count - 1 'sql = "insert into RungServ (SysName,RunningServices) values ('" & txtMachi neName.Text & "','" & ListSrvRun.Items(x) & "')" sql = "insert into Stopdrv values ('" & ip & " ','" & txtMachineName .Text & "','" & ListDrvStopped.Items(x) & "')" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql Try i = cmd.ExecuteNonQuery Catch ex As Exception MsgBox(ex.Message) End Try Next End If End Sub Private Sub Button34_Click(ByVal sender As System.Object, ByVal e As System.Even tArgs) Handles Button34.Click Dim con As New OleDbConnection("provider=Microsoft.jet.oledb.4.0; user id = Admi n; data source = " & Application.StartupPath & "\NW.mdb") Dim cmd As New OleDbCommand Dim x, ctr, i As Integer Dim sql, ip, sname As String Dim arr() As String If con.State = ConnectionState.Closed Then con.Open() arr = txtMachineName.Text.Split(".") If UBound(arr) = 3 Then Dim dr As OleDbDataReader sql = "select sysname from sysproc where IPAddress ='" & txtMachineName.Text & "'" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql dr = cmd.ExecuteReader If dr.Read Then sname = dr.Item(0)

Else sname = " " End If dr.Close() sql = "delete from sysproc where sysname = '" & txtMachineName.Text & "' " cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql i = cmd.ExecuteNonQuery For x = 0 To ListPcsRun.Items.Count - 1 sql = "insert into sysproc values ('" & txtMachineName.Text & "','" &amp ; sname & "','" & ListPcsRun.Items(x) & "')" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql i = cmd.ExecuteNonQuery Next 'MsgBox("Its an IP") Else Dim dr As OleDbDataReader sql = "select IPAddress from sysproc where sysname ='" & txtMachineName.Text & "'" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql dr = cmd.ExecuteReader If dr.Read Then ip = dr.Item(0) Else ip = "0.0.0.0" End If dr.Close() sql = "delete from sysproc where sysname = '" & txtMachineName.Text & "' " cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql i = cmd.ExecuteNonQuery For x = 0 To ListPcsRun.Items.Count - 1 sql = "insert into sysproc values ('" & ip & "','" & txtMachineName. Text & "','" & ListPcsRun.Items(x) & "')" cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = sql Try i = cmd.ExecuteNonQuery Catch ex As Exception MsgBox(ex.Message) End Try

Next End If End Sub Private Sub MenuItem8_Click(ByVal sender As System.Object, ByVal e As System.Eve ntArgs) Handles MenuItem8.Click Dim frm As New Reports frm.Show() End Sub Private Sub MenuItem9_Click(ByVal sender As System.Object, ByVal e As System.Eve ntArgs) Handles MenuItem9.Click Dim d As Double For d = 1 To 0 + 0.2 Step -0.2 System.Threading.Thread.Sleep(50) Application.DoEvents() Me.Opacity = d Me.Refresh() Next d Environment.Exit(0) End Sub Private Sub MenuItem4_Click(ByVal sender As System.Object, ByVal e As System.Eve ntArgs) Handles MenuItem4.Click End Sub Private Sub MenuItem10_Click(ByVal sender As System.Object, ByVal e As System.Ev entArgs) Handles MenuItem10.Click Shell(Application.StartupPath & "\nswmiconsole.exe", AppWinStyle.NormalFocus ) End Sub Private Sub MenuItem11_Click(ByVal sender As System.Object, ByVal e As System.Ev entArgs) Handles MenuItem11.Click Shell(Application.StartupPath & "\nswmicrawler.exe", AppWinStyle.NormalFocus ) End Sub Private Sub ListSrvRun_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListSrvRun.SelectedIndexChanged End Sub End Class 'MainForm End Namespace 'WindowsApplication1

You might also like