Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


One start and stop button is there and one textbox is
there.when you click start button ,it will display
1,2,3......up to infinite in textbox.when you click stop
button it will stop.



One start and stop button is there and one textbox is there.when you click start button ,it will di..

Answer / lince thomas

bool stopBtnClk = false;
bool startBtnClk = false;
private void BtnStart_Click(object sender, EventArgs e)
{
stopBtnClk = false;

startBtnClk = true;
int i = 1;
while (true)
{
textBox1.Text = i.ToString();
i += 1;
Application.DoEvents();
if (stopBtnClk == true)
{
break;
}
}
}

private void BtnStop_Click(object sender, EventArgs e)
{
stopBtnClk = true;
Application.Exit ();
}

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Explain the concepts of cts and cls(common language specification).

0 Answers  


What?s the .NET datatype that allows the retrieval of data by a unique key?

1 Answers  


Where do you add an event handler ?

1 Answers  


What debugging tools come with the .NET SDK?

1 Answers  


What is array class in c#?

0 Answers  


List the fundamental oop concepts?

0 Answers  


What does the keyword virtual mean in the method definition?

2 Answers  


Can a loop recorder detect a heart attack?

0 Answers  


What is virtual class in C#?

0 Answers   B-Ways TecnoSoft,


list the steps in code compilation in c#?

0 Answers  


Explain how to implement an object pool in c#.net

0 Answers  


What is boxing? Explain its functionality?

0 Answers   Siebel,


Categories