Consider i have a window Application,developed in Visual Studio 2005, having a button.
I need to use "Run to cursor"/Debug when the button is Clicked Third time(or some nth time) and not First time. How can i do this.?
Consider this being a sample code.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace breakPoint
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < 10; i++)
{
textBox1.Text += "hi ";
textBox2.Text += "hello ";
textBox3.Text += "bye ";
}
}
}
}
I need to insert break point at "textBox1.Text" line when i click the button nth time.