This time in C ++ 9 (VS2008) I am trying to pass "System :: Object ^ sender" to the Control type that it represents.
This is specifically in the TextBox_TextChanged event function.
I know this works fine in C #, but I get errors when I try to use it in C ++, and I cannot find the equivalent for C ++.
C ++ code that gives me errors.,.
System::Void txtEmplNum_TextChanged(System::Object^ sender, System::EventArgs^ e)
{
TextBox thisBox = sender as TextBox ;
}
And the error that occurs.,.
Error 1 error C2582: 'operator =' function is unavailable in 'System::Windows::Forms::TextBox' c:\projects\nms\badgescan\frmMain.h 673 BadgeScan
Any ideas are welcome.
Thank!
source
share