C# – Make a Messagebox display a variable

c++messageboxvariables

I want a MessageBox to display an int variable, can anybody help?

Best Solution

You want to use the MessageBox.Show() method

int num = 0;
MessageBox.Show(num.ToString());