MessageBox without focus on a MessageBoxButton
.net, c#
Solution
This isn't possible with the standard MessageBox - you'll need to implement your own if you want this functionality.
See here to get you started.
Problem
Is there a way to show an MessageBox in C# without a focus on a button in the message box? For example the following code snippet (which is not working as wished): ``` MessageBox.Show("I should not have a button on focus", "Test", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button3); ``` What i want is that the MessageBox is shown without a focus on [Yes] or [No]. Background is that the customer scans several barcodes which have an carriage return at the and. So when the messagebox pops up and they scan further barcodes without noticing the message box they "press" a button.