How to display variable value in message box C#?
This is really easy. Don't get confused and write int test = 1; , then MessageBox. Show("test:" + 1) , because then if test 's value changes, that will just print 1 instead of test 's new value 2 . Save this answer.