Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 613
Goober Avatar asked Mar 22 '10 10:03

Goober


1 Answers

Use a custom Form instead with .ShowDialog()

like image 199
thelost Avatar answered Oct 04 '22 01:10

thelost