4 ms·
One problem is that the standard Windows API for creating a MessageBox only has standard options for the button labels. If you to use custom text you have to cr
by Osiris 14y ago
One problem is that the standard Windows API for creating a MessageBox only has standard options for the button labels. If you to use custom text you have to create your own form.
- simonh 14y agoThis is due to localisation. Standard dialogues with limited and clearly defined text options can be automatically localised by the system, but if you put arbitrary text on your buttons and you want localisation, you have to provide translations yourself.
- evanw 14y agoI had this same problem once upon a time, so I created a WPF clone of the standard Windows/.NET MessageBox which allows for custom strings for button text (OK, OK/Cancel, Yes/No, YesNoCancel). It's on Github: https://github.com/evanwon/WPFCustomMessageBox https://github.com/evanwon/WPFCustomMessageBox There's more to be done, but it's been handy for me so far!