I want to get an 'int' value in a variable and set it in a textBox. The 2nd line of this code is showing an error:
This expression cannot be used as an assignment target.
How can I solve it?
int nextCode = teacherManagerObj.GetCode();
//shows error "This expression cannot be used as an assignment target"
Convert.ToInt32(codeTextBox.Text) = nextCode;