Hi all, this might be a dumb question, but is it possible to clear all the TextBox fields included inside a specific custom sheet?
I have the following code
public void ClearTextBoxes(Control control) { foreach (Control c in control.Controls) { if (c is TextBox) { ((TextBox)c).Clear(); } if (c.HasChildren) { ClearTextBoxes(c); } } }
and this called when the sheet is loaded with the following line:
ClearTextBoxes(this);
but it is not working. Any Thoughts?