tags:

views:

36

answers:

2
DialogResult result;
result = MessageBox.Show(breakpl[0], "Move this to confige file?", MessageBoxButtons.YesNo);

All I want is for when the box pops up to default to No, there is around 1000 No's and like 10 yes's. So I just want to be able to hit enter and cycle threw them.

+3  A: 

Use the MessageBox.Show() overload that takes a MessageBoxDefaultButton argument. Or just invert the question.

Hans Passant
lol I thought of that but i didnt really want to confuse the user...
Mike
You will confuse the user with a message like that. But the vast majority of them will click No when they don't understand what's being asked.
Hans Passant
A: 

There is an overload on MessageBox.Show() to accomplish this. You can read more here

Brandon