numericUpDown operations

Hi
I want to use 2 numericUpDowns. 1st max value is 180, 2nd max value is 90. How to make 2nd numeric ReadOnly when some1 pick 180 value in numericUpDown number 1?
I tried like this:

private: System::Void numericUpDown5_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
if (this->numericUpDown5-> = 180)
{
this->numericUpDown8->ReadOnly = true;
}
else
{
this->numericUpDown8->ReadOnly = false;
}
}

but ive got an error: conditional expression of type "void" is illegal. PLS HELP ME!
any1?
Topic archived. No new replies allowed.