labtask
labtask
namespace CounterApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.btnCount = new System.Windows.Forms.Button();
this.lblCount = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// btnCount
//
this.btnCount.Location = new System.Drawing.Point(100, 50);
this.btnCount.Name = "btnCount";
this.btnCount.Size = new System.Drawing.Size(100, 30);
this.btnCount.TabIndex = 0;
this.btnCount.Text = "Count";
this.btnCount.UseVisualStyleBackColor = true;
this.btnCount.Click += new System.EventHandler(this.btnCount_Click);
//
// lblCount
//
this.lblCount.AutoSize = true;
this.lblCount.Location = new System.Drawing.Point(100, 100);
this.lblCount.Name = "lblCount";
this.lblCount.Size = new System.Drawing.Size(13, 13);
this.lblCount.TabIndex = 1;
this.lblCount.Text = "0"; // Initial count
//
// Form1
//
this.ClientSize = new System.Drawing.Size(300, 200);
this.Controls.Add(this.lblCount);
this.Controls.Add(this.btnCount);
this.Name = "Form1";
this.Text = "Counter App";
this.ResumeLayout(false);
this.PerformLayout();
}
SCREENSHOT :
CODE :