G
Guest
Hi,
I'm new to C# & just experimenting with how to use it. I can't figure out
why I can't do this.
The dialog result object is not 'seen' in the while statement of the do
loop, yet the integer is. why is this so?
The
do
{
// declare the int
int iCount = 0;
iCount++;
// declare the dialog result object
DialogResult drDoAgain;
drDoAgain = MessageBox.Show(strOP,"Do again?", MessageBoxButtons.YesNo);
}
while ( iCount < 10 && drDoagain == DialogResult.Yes);
Thanks for any help.
Ant
I'm new to C# & just experimenting with how to use it. I can't figure out
why I can't do this.
The dialog result object is not 'seen' in the while statement of the do
loop, yet the integer is. why is this so?
The
do
{
// declare the int
int iCount = 0;
iCount++;
// declare the dialog result object
DialogResult drDoAgain;
drDoAgain = MessageBox.Show(strOP,"Do again?", MessageBoxButtons.YesNo);
}
while ( iCount < 10 && drDoagain == DialogResult.Yes);
Thanks for any help.
Ant