While click the button how many times the same person will click the button.
i want know how to count?
please send me With Example.
Thanks&Regs
Magesh
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Mar 10, 2012, 1:31 AM
Try this...
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication9
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
static int count = 0;
private void button1_Click(object sender, EventArgs e)
{
count++;
int totalcount=count;
textBox1.Text = totalcount.ToString();
}
}
}
Thanks
If this post helps you mark it as answer