본문 바로가기
C#/0x02-listbox

c# GUI ][ listbox

by SpeeDr00t 2020. 2. 3.
반응형

c# GUI ][ listbox

git clone https://github.com/kaseul/ListBox.git
view raw list.sh hosted with ❤ by GitHub

ListBox-master.zip
14.9 kB

namespace ListBox
{
partial class Form1
{
/// <summary>
/// 필수 디자이너 변수입니다.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 사용 중인 모든 리소스를 정리합니다.
/// </summary>
/// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form 디자이너에서 생성한 코드
/// <summary>
/// 디자이너 지원에 필요한 메서드입니다.
/// 이 메서드의 내용을 코드 편집기로 수정하지 마세요.
/// </summary>
private void InitializeComponent()
{
this.lbView = new System.Windows.Forms.ListBox();
this.lblResult = new System.Windows.Forms.Label();
this.txtList = new System.Windows.Forms.TextBox();
this.btnAdd = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// lbView
//
this.lbView.FormattingEnabled = true;
this.lbView.ItemHeight = 12;
this.lbView.Location = new System.Drawing.Point(13, 13);
this.lbView.Name = "lbView";
this.lbView.Size = new System.Drawing.Size(275, 196);
this.lbView.TabIndex = 0;
this.lbView.SelectedIndexChanged += new System.EventHandler(this.LbView_SelectedIndexChanged);
//
// lblResult
//
this.lblResult.AutoSize = true;
this.lblResult.Location = new System.Drawing.Point(13, 216);
this.lblResult.Name = "lblResult";
this.lblResult.Size = new System.Drawing.Size(41, 12);
this.lblResult.TabIndex = 1;
this.lblResult.Text = "결과 : ";
//
// txtList
//
this.txtList.Location = new System.Drawing.Point(15, 232);
this.txtList.Name = "txtList";
this.txtList.Size = new System.Drawing.Size(273, 21);
this.txtList.TabIndex = 2;
this.txtList.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TxtList_KeyPress);
//
// btnAdd
//
this.btnAdd.Location = new System.Drawing.Point(15, 260);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(273, 35);
this.btnAdd.TabIndex = 3;
this.btnAdd.Text = "추가";
this.btnAdd.UseVisualStyleBackColor = true;
this.btnAdd.Click += new System.EventHandler(this.BtnAdd_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(300, 307);
this.Controls.Add(this.btnAdd);
this.Controls.Add(this.txtList);
this.Controls.Add(this.lblResult);
this.Controls.Add(this.lbView);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "Form1";
this.Text = "리스트 추가";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ListBox lbView;
private System.Windows.Forms.Label lblResult;
private System.Windows.Forms.TextBox txtList;
private System.Windows.Forms.Button btnAdd;
}
}
반응형