How do I code if I am coding what will happen if I press a button. and then ask a question and want to wait until either of two others buttons are pressed like an yes or no question
say i code something and to continue i need the answer like 0=no 1=yes and return that value to the first button code depending on which other button i pressed to answer the question
private void dostuff_Click(object sender, EventArgs e)
{
//code code
//need answer to question
//and then get a return value depending on which of the
//two below i press
}
private void no_Click(object sender, EventArgs e)
{
}
private void yes_Click(object sender, EventArgs e)
{
}