Search code examples
c#winformsmessagebox

C# Messagebox With ComboBox


How can I produce a messagebox in a C# Win Forms application that displays a combobox with a series of values to select as well as the usual "Ok" button?

I would like to be able to trigger this on calling the MessageBox.Show() method. I am assuming some sort of override will be necessary, but I haven't seen any pre-existing examples for this.


Solution

  • Use a custom Form instead with .ShowDialog()