Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3303

Application Messagebox bug in result (9.1 PL04)

$
0
0

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.


Viewing all articles
Browse latest Browse all 3303


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>