How could I fix the error upon compiling the short code.
Here is the code:
private void button1_Click(object sender, EventArgs e)
{
int a = 5;
MessageBox.Show(a.ToString);
}
It gives me back this 2 errors:
Error 1 The best overloaded method match for 'System.Windows.Forms.MessageBox.Show(string)' has some invalid arguments
Error 2 Argument 1: cannot convert from 'method group' to 'string'
Any idea?