Make a Messagebox display a variable

user1350180 picture user1350180 · Apr 23, 2012 · Viewed 53.1k times · Source

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

Answer

jb. picture jb. · Apr 23, 2012

You want to use the MessageBox.Show() method

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