11,572 questions
Change the Modifiers property from private to public to access the error provider.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Using a custom TextBox to trap the Tab key. I dropped the custom TextBox onto the Window Form.
I have discovered how to refer to the controls on the Form from within the class.
Form f = Application.OpenForms["Form1"] as Form;
string s = f.Controls["tabTextBox1"].Text;
I still need to access an ErrorProvider on the form and can't get the syntax correct. I can see them but just can't determine how to access them.
I found an example online that used Reflection. Hoping there is an easier way.
Regards,
Lance
Change the Modifiers property from private to public to access the error provider.