I wanted to make a function that shows MessageBox with buttons which user chose in ComboBox, but i can't convert string to System.Windows.Forms.MessageBoxButtons. I tried this:
MessageBoxButtons buttons = comboBox1.Text;
and this:
MessageBoxButtons buttons = comboBox1.Text as MessageBoxButtons;
but it shows that cannot convert string to System.Windows.Forms.MessageBoxButtons.
Parse
function also doesn't work because MessageBoxButtons has no such option
Can anyone help me?