private void rbWeek_CheckedChanged(object sender, EventArgs e)
{
if (rbWeek.Enabled == true)
{
DialogResult dChangeCycle = MessageBox.Show("Yes to start new billing cycle from today's date. No will make no changes to next billing Date.", "Next Billing Date Change", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (dChangeCycle == DialogResult.No)
{
}
else if (dChangeCycle == DialogResult.Yes)
{
dtpBillDate.Value = DateTime.Now.AddDays(7);
}
billing_CycleTextBox.Text = "Weekly";
}
}
I can't see why it is running the messagebox twice.
break showed it fire the Message Box right but as soon as you press yes or no it fired it again with no break?
I is confuseded....