Esempio n. 1
0
 /// <summary>
 /// �f�U�C�i �T�|�[�g�ɕK�v�ȃ��\�b�h�ł��B���̃��\�b�h�̓�e��
 /// �R�[�h �G�f�B�^�ŕύX���Ȃ��ł��������B
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.listViewProcess = new Utility.CustomControl.CustomListView();
     this.columnHeaderNo = new System.Windows.Forms.ColumnHeader();
     this.columnHeaderID = new System.Windows.Forms.ColumnHeader();
     this.columnHeaderStartTime = new System.Windows.Forms.ColumnHeader();
     this.columnHeaderName = new System.Windows.Forms.ColumnHeader();
     this.columnHeaderCommandLine = new System.Windows.Forms.ColumnHeader();
     this.timerRefresh = new System.Windows.Forms.Timer(this.components);
     this.textBoxProcessName = new System.Windows.Forms.TextBox();
     this.label1 = new System.Windows.Forms.Label();
     this.buttonRefresh = new System.Windows.Forms.Button();
     this.textBoxPrcessID = new System.Windows.Forms.TextBox();
     this.buttonKillProcess = new System.Windows.Forms.Button();
     this.toolTipListView = new System.Windows.Forms.ToolTip(this.components);
     this.buttonExit = new System.Windows.Forms.Button();
     this.textBoxCommandLine = new System.Windows.Forms.TextBox();
     this.label2 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.buttonOperation = new System.Windows.Forms.Button();
     this.statusBarProcessList = new System.Windows.Forms.StatusBar();
     this.SuspendLayout();
     //
     // listViewProcess
     //
     this.listViewProcess.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
         | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.listViewProcess.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
                                                                                       this.columnHeaderNo,
                                                                                       this.columnHeaderID,
                                                                                       this.columnHeaderStartTime,
                                                                                       this.columnHeaderName,
                                                                                       this.columnHeaderCommandLine});
     this.listViewProcess.FullRowSelect = true;
     this.listViewProcess.GridLines = true;
     this.listViewProcess.ImeMode = System.Windows.Forms.ImeMode.Disable;
     this.listViewProcess.LabelEdit = true;
     this.listViewProcess.Location = new System.Drawing.Point(8, 120);
     this.listViewProcess.Name = "listViewProcess";
     this.listViewProcess.Size = new System.Drawing.Size(476, 200);
     this.listViewProcess.TabIndex = 0;
     this.listViewProcess.View = System.Windows.Forms.View.Details;
     this.listViewProcess.KeyDown += new System.Windows.Forms.KeyEventHandler(this.listViewProcess_KeyDown);
     this.listViewProcess.DoubleClick += new System.EventHandler(this.listViewProcess_DoubleClick);
     this.listViewProcess.SelectedIndexChanged += new System.EventHandler(this.listViewProcess_SelectedIndexChanged);
     this.listViewProcess.MouseMove += new System.Windows.Forms.MouseEventHandler(this.listViewProcess_MouseMove);
     //
     // columnHeaderNo
     //
     this.columnHeaderNo.Text = "No";
     this.columnHeaderNo.Width = 35;
     //
     // columnHeaderID
     //
     this.columnHeaderID.Text = "ID";
     this.columnHeaderID.Width = 50;
     //
     // columnHeaderStartTime
     //
     this.columnHeaderStartTime.Text = "StartTime";
     this.columnHeaderStartTime.Width = 75;
     //
     // columnHeaderName
     //
     this.columnHeaderName.Text = "Name";
     this.columnHeaderName.Width = 100;
     //
     // columnHeaderCommandLine
     //
     this.columnHeaderCommandLine.Text = "CommandLine";
     this.columnHeaderCommandLine.Width = 155;
     //
     // timerRefresh
     //
     this.timerRefresh.Interval = 1000;
     this.timerRefresh.Tick += new System.EventHandler(this.timerRefresh_Tick);
     //
     // textBoxProcessName
     //
     this.textBoxProcessName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.textBoxProcessName.Location = new System.Drawing.Point(104, 8);
     this.textBoxProcessName.Name = "textBoxProcessName";
     this.textBoxProcessName.Size = new System.Drawing.Size(292, 19);
     this.textBoxProcessName.TabIndex = 1;
     this.textBoxProcessName.Text = "";
     this.textBoxProcessName.TextChanged += new System.EventHandler(this.textBoxProcess_TextChanged);
     //
     // label1
     //
     this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
         | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(8, 8);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(79, 15);
     this.label1.TabIndex = 2;
     this.label1.Text = "Process Name";
     //
     // buttonRefresh
     //
     this.buttonRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonRefresh.Location = new System.Drawing.Point(408, 88);
     this.buttonRefresh.Name = "buttonRefresh";
     this.buttonRefresh.Size = new System.Drawing.Size(72, 24);
     this.buttonRefresh.TabIndex = 3;
     this.buttonRefresh.Text = "Refresh";
     this.buttonRefresh.Click += new System.EventHandler(this.buttonRefresh_Click);
     //
     // textBoxPrcessID
     //
     this.textBoxPrcessID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.textBoxPrcessID.ImeMode = System.Windows.Forms.ImeMode.Disable;
     this.textBoxPrcessID.Location = new System.Drawing.Point(104, 56);
     this.textBoxPrcessID.Name = "textBoxPrcessID";
     this.textBoxPrcessID.ReadOnly = true;
     this.textBoxPrcessID.Size = new System.Drawing.Size(292, 19);
     this.textBoxPrcessID.TabIndex = 4;
     this.textBoxPrcessID.Text = "";
     //
     // buttonKillProcess
     //
     this.buttonKillProcess.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonKillProcess.Location = new System.Drawing.Point(408, 56);
     this.buttonKillProcess.Name = "buttonKillProcess";
     this.buttonKillProcess.Size = new System.Drawing.Size(72, 24);
     this.buttonKillProcess.TabIndex = 5;
     this.buttonKillProcess.Text = "Kill";
     this.buttonKillProcess.Click += new System.EventHandler(this.buttonKillProcess_Click);
     //
     // buttonExit
     //
     this.buttonExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonExit.Location = new System.Drawing.Point(408, 328);
     this.buttonExit.Name = "buttonExit";
     this.buttonExit.Size = new System.Drawing.Size(80, 24);
     this.buttonExit.TabIndex = 6;
     this.buttonExit.Text = "Exit";
     this.buttonExit.Click += new System.EventHandler(this.buttonExit_Click);
     //
     // textBoxCommandLine
     //
     this.textBoxCommandLine.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.textBoxCommandLine.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.textBoxCommandLine.Location = new System.Drawing.Point(104, 32);
     this.textBoxCommandLine.Name = "textBoxCommandLine";
     this.textBoxCommandLine.Size = new System.Drawing.Size(292, 19);
     this.textBoxCommandLine.TabIndex = 7;
     this.textBoxCommandLine.Text = "";
     this.textBoxCommandLine.TextChanged += new System.EventHandler(this.textBoxProcess_TextChanged);
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(8, 32);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(81, 15);
     this.label2.TabIndex = 8;
     this.label2.Text = "Command Line";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(8, 56);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(61, 15);
     this.label3.TabIndex = 9;
     this.label3.Text = "Process ID";
     //
     // buttonOperation
     //
     this.buttonOperation.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonOperation.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.buttonOperation.Location = new System.Drawing.Point(408, 16);
     this.buttonOperation.Name = "buttonOperation";
     this.buttonOperation.Size = new System.Drawing.Size(72, 24);
     this.buttonOperation.TabIndex = 10;
     this.buttonOperation.Click += new System.EventHandler(this.buttonOperation_Click);
     //
     // statusBarProcessList
     //
     this.statusBarProcessList.Location = new System.Drawing.Point(0, 358);
     this.statusBarProcessList.Name = "statusBarProcessList";
     this.statusBarProcessList.Size = new System.Drawing.Size(492, 16);
     this.statusBarProcessList.TabIndex = 11;
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
     this.ClientSize = new System.Drawing.Size(492, 374);
     this.Controls.Add(this.statusBarProcessList);
     this.Controls.Add(this.buttonOperation);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.textBoxCommandLine);
     this.Controls.Add(this.buttonExit);
     this.Controls.Add(this.buttonKillProcess);
     this.Controls.Add(this.textBoxPrcessID);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.textBoxProcessName);
     this.Controls.Add(this.buttonRefresh);
     this.Controls.Add(this.listViewProcess);
     this.MinimumSize = new System.Drawing.Size(500, 300);
     this.Name = "MainForm";
     this.Text = "ProcessList";
     this.Load += new System.EventHandler(this.MainForm_Load);
     this.ResumeLayout(false);
 }
Esempio n. 2
0
 /// <summary>
 /// デザイナ サポートに必要なメソッドです。このメソッドの内容を
 /// コード エディタで変更しないでください。
 /// </summary>
 private void InitializeComponent()
 {
     this.components              = new System.ComponentModel.Container();
     this.listViewProcess         = new Utility.CustomControl.CustomListView();
     this.columnHeaderNo          = new System.Windows.Forms.ColumnHeader();
     this.columnHeaderID          = new System.Windows.Forms.ColumnHeader();
     this.columnHeaderStartTime   = new System.Windows.Forms.ColumnHeader();
     this.columnHeaderName        = new System.Windows.Forms.ColumnHeader();
     this.columnHeaderCommandLine = new System.Windows.Forms.ColumnHeader();
     this.timerRefresh            = new System.Windows.Forms.Timer(this.components);
     this.textBoxProcessName      = new System.Windows.Forms.TextBox();
     this.label1               = new System.Windows.Forms.Label();
     this.buttonRefresh        = new System.Windows.Forms.Button();
     this.textBoxPrcessID      = new System.Windows.Forms.TextBox();
     this.buttonKillProcess    = new System.Windows.Forms.Button();
     this.toolTipListView      = new System.Windows.Forms.ToolTip(this.components);
     this.buttonExit           = new System.Windows.Forms.Button();
     this.textBoxCommandLine   = new System.Windows.Forms.TextBox();
     this.label2               = new System.Windows.Forms.Label();
     this.label3               = new System.Windows.Forms.Label();
     this.buttonOperation      = new System.Windows.Forms.Button();
     this.statusBarProcessList = new System.Windows.Forms.StatusBar();
     this.SuspendLayout();
     //
     // listViewProcess
     //
     this.listViewProcess.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                          | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
     this.listViewProcess.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeaderNo,
         this.columnHeaderID,
         this.columnHeaderStartTime,
         this.columnHeaderName,
         this.columnHeaderCommandLine
     });
     this.listViewProcess.FullRowSelect         = true;
     this.listViewProcess.GridLines             = true;
     this.listViewProcess.ImeMode               = System.Windows.Forms.ImeMode.Disable;
     this.listViewProcess.LabelEdit             = true;
     this.listViewProcess.Location              = new System.Drawing.Point(8, 120);
     this.listViewProcess.Name                  = "listViewProcess";
     this.listViewProcess.Size                  = new System.Drawing.Size(476, 200);
     this.listViewProcess.TabIndex              = 0;
     this.listViewProcess.View                  = System.Windows.Forms.View.Details;
     this.listViewProcess.KeyDown              += new System.Windows.Forms.KeyEventHandler(this.listViewProcess_KeyDown);
     this.listViewProcess.DoubleClick          += new System.EventHandler(this.listViewProcess_DoubleClick);
     this.listViewProcess.SelectedIndexChanged += new System.EventHandler(this.listViewProcess_SelectedIndexChanged);
     this.listViewProcess.MouseMove            += new System.Windows.Forms.MouseEventHandler(this.listViewProcess_MouseMove);
     //
     // columnHeaderNo
     //
     this.columnHeaderNo.Text  = "No";
     this.columnHeaderNo.Width = 35;
     //
     // columnHeaderID
     //
     this.columnHeaderID.Text  = "ID";
     this.columnHeaderID.Width = 50;
     //
     // columnHeaderStartTime
     //
     this.columnHeaderStartTime.Text  = "StartTime";
     this.columnHeaderStartTime.Width = 75;
     //
     // columnHeaderName
     //
     this.columnHeaderName.Text  = "Name";
     this.columnHeaderName.Width = 100;
     //
     // columnHeaderCommandLine
     //
     this.columnHeaderCommandLine.Text  = "CommandLine";
     this.columnHeaderCommandLine.Width = 155;
     //
     // timerRefresh
     //
     this.timerRefresh.Interval = 1000;
     this.timerRefresh.Tick    += new System.EventHandler(this.timerRefresh_Tick);
     //
     // textBoxProcessName
     //
     this.textBoxProcessName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                            | System.Windows.Forms.AnchorStyles.Right)));
     this.textBoxProcessName.Location     = new System.Drawing.Point(104, 8);
     this.textBoxProcessName.Name         = "textBoxProcessName";
     this.textBoxProcessName.Size         = new System.Drawing.Size(292, 19);
     this.textBoxProcessName.TabIndex     = 1;
     this.textBoxProcessName.Text         = "";
     this.textBoxProcessName.TextChanged += new System.EventHandler(this.textBoxProcess_TextChanged);
     //
     // label1
     //
     this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                 | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(8, 8);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(79, 15);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Process Name";
     //
     // buttonRefresh
     //
     this.buttonRefresh.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonRefresh.Location = new System.Drawing.Point(408, 88);
     this.buttonRefresh.Name     = "buttonRefresh";
     this.buttonRefresh.Size     = new System.Drawing.Size(72, 24);
     this.buttonRefresh.TabIndex = 3;
     this.buttonRefresh.Text     = "Refresh";
     this.buttonRefresh.Click   += new System.EventHandler(this.buttonRefresh_Click);
     //
     // textBoxPrcessID
     //
     this.textBoxPrcessID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
     this.textBoxPrcessID.ImeMode  = System.Windows.Forms.ImeMode.Disable;
     this.textBoxPrcessID.Location = new System.Drawing.Point(104, 56);
     this.textBoxPrcessID.Name     = "textBoxPrcessID";
     this.textBoxPrcessID.ReadOnly = true;
     this.textBoxPrcessID.Size     = new System.Drawing.Size(292, 19);
     this.textBoxPrcessID.TabIndex = 4;
     this.textBoxPrcessID.Text     = "";
     //
     // buttonKillProcess
     //
     this.buttonKillProcess.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonKillProcess.Location = new System.Drawing.Point(408, 56);
     this.buttonKillProcess.Name     = "buttonKillProcess";
     this.buttonKillProcess.Size     = new System.Drawing.Size(72, 24);
     this.buttonKillProcess.TabIndex = 5;
     this.buttonKillProcess.Text     = "Kill";
     this.buttonKillProcess.Click   += new System.EventHandler(this.buttonKillProcess_Click);
     //
     // buttonExit
     //
     this.buttonExit.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonExit.Location = new System.Drawing.Point(408, 328);
     this.buttonExit.Name     = "buttonExit";
     this.buttonExit.Size     = new System.Drawing.Size(80, 24);
     this.buttonExit.TabIndex = 6;
     this.buttonExit.Text     = "Exit";
     this.buttonExit.Click   += new System.EventHandler(this.buttonExit_Click);
     //
     // textBoxCommandLine
     //
     this.textBoxCommandLine.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                            | System.Windows.Forms.AnchorStyles.Right)));
     this.textBoxCommandLine.ImeMode      = System.Windows.Forms.ImeMode.NoControl;
     this.textBoxCommandLine.Location     = new System.Drawing.Point(104, 32);
     this.textBoxCommandLine.Name         = "textBoxCommandLine";
     this.textBoxCommandLine.Size         = new System.Drawing.Size(292, 19);
     this.textBoxCommandLine.TabIndex     = 7;
     this.textBoxCommandLine.Text         = "";
     this.textBoxCommandLine.TextChanged += new System.EventHandler(this.textBoxProcess_TextChanged);
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(8, 32);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(81, 15);
     this.label2.TabIndex = 8;
     this.label2.Text     = "Command Line";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(8, 56);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(61, 15);
     this.label3.TabIndex = 9;
     this.label3.Text     = "Process ID";
     //
     // buttonOperation
     //
     this.buttonOperation.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonOperation.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.buttonOperation.Location  = new System.Drawing.Point(408, 16);
     this.buttonOperation.Name      = "buttonOperation";
     this.buttonOperation.Size      = new System.Drawing.Size(72, 24);
     this.buttonOperation.TabIndex  = 10;
     this.buttonOperation.Click    += new System.EventHandler(this.buttonOperation_Click);
     //
     // statusBarProcessList
     //
     this.statusBarProcessList.Location = new System.Drawing.Point(0, 358);
     this.statusBarProcessList.Name     = "statusBarProcessList";
     this.statusBarProcessList.Size     = new System.Drawing.Size(492, 16);
     this.statusBarProcessList.TabIndex = 11;
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
     this.ClientSize        = new System.Drawing.Size(492, 374);
     this.Controls.Add(this.statusBarProcessList);
     this.Controls.Add(this.buttonOperation);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.textBoxCommandLine);
     this.Controls.Add(this.buttonExit);
     this.Controls.Add(this.buttonKillProcess);
     this.Controls.Add(this.textBoxPrcessID);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.textBoxProcessName);
     this.Controls.Add(this.buttonRefresh);
     this.Controls.Add(this.listViewProcess);
     this.MinimumSize = new System.Drawing.Size(500, 300);
     this.Name        = "MainForm";
     this.Text        = "ProcessList";
     this.Load       += new System.EventHandler(this.MainForm_Load);
     this.ResumeLayout(false);
 }