I am trying to use ErrorProvider Class to show error on checkbox. I am able to show the error using the following code
errorProvider1->SetError(checkBox1,"Error");
But when I am trying to dispose this errorProvider using the following code
errorProvider1->Dispose();
Then this line is showing error
error C2039: 'Dispose' : is not a member of 'System::Windows::Forms::ErrorProvider'
This Code I am able to run successfully in vc# but not in vc++;
But since My requirement is to use this in vc++.
Can anybody please tell me what is the problem in this code.
Thanks in Advance
errorProvider1
with stack semantics so nodelete
call is necessary at all. – Dialogism