hi !!!i m trying to perform a key press event untill a button is clicked .How can i keep a key press event in a loop untill a button is clicked?? please help !!!
here is a part of the code, tryin to explain what i m tryin to do---->
private void textBox1_KeyPre ss(object sender, KeyPressEventAr gs e)
{
int i = 0;
while(untill button not clicked)
{
if (e.KeyChar == 13)
{
string c = textBox1.Lines[i];
i++;
}
}
}
here is a part of the code, tryin to explain what i m tryin to do---->
private void textBox1_KeyPre ss(object sender, KeyPressEventAr gs e)
{
int i = 0;
while(untill button not clicked)
{
if (e.KeyChar == 13)
{
string c = textBox1.Lines[i];
i++;
}
}
}
Comment