Skip to Content
0
Feb 03, 2016 at 11:37 AM

Application Messagebox bug in result (9.1 PL04)

38 Views

Hello all,

Yesterday I discovered a small but annoying bug in the SDK Framework.

When pressing the close button of a Messagebox the last button is selected (result == 3), instead of returning 0 or -1 (or something like that).

Am I the onlyone with this strange behaviour?

int result = Application.MessageBox("Message", 3, "Button 1", "Button 2", "Button 3"); if (result == 1) { } // etc

Code example in C#.

Thanks.