Write a GUI program that accepts the names of two of your friends. Display the result of using the String.Compare() method with your friends' names.
This is what i have done so far
string name1String, name2String;
name1String = Convert.ToString(textBox1.Text);
name2String = Convert.ToString(textBox2.Text);
label3.Text = (" Compare {0} to {1}: {2}", name1String,name2String, string.Compare(name1String, name2String);
but it doesn't work it tells me (Error1Only assignment, call, increment, decrement, and new object expressions can be used as a statementc:\users\alexander\documents\visual studio 2010\Projects\Chapter3Exr3\Chapter3Exr3\Form1.cs2428Chapter3Exr3
), anyone has solution? please