views:

17

answers:

0

The scenario...

  • I have two forms, F1 and F2.
  • F1 contains a couple of radio buttons with a single event handler attached to the click event of both.
  • F1 also contains a MainMenu, one option of which opens F2 using ShowDialog().
  • F2 contains a MainMenu, one option of which sets the DialogResult of F2 to DialogResult.OK, thus closing the dialog

The Problem...

When I click the OK menu option on F2, the event handler for the radio buttons on F1 is fired, before the call to Form.ShowDialog() is completed.

Has anybody else seen this and if so, does anybody have any idea why this may be happenning.

I can confirm that F2 knows nothing about F1 and that there are no extraneous calls to the event handler within any of the code.

Thanks.