Whilst Scott gave an excellent example of adding controls to a form (viewtopic.php?f=27&t=404&p=1306&hilit=add+control#p1306)
and you can use something like
if (JiwaForm.GetType() == typeof(JiwaFinancials.Jiwa.JiwaSalesUI.SalesOrder.SalesOrderEntryForm))
{
JiwaFinancials.Jiwa.JiwaSalesUI.SalesOrder.SalesOrderEntryForm salesform = (JiwaFinancials.Jiwa.JiwaSalesUI.SalesOrder.SalesOrderEntryForm)JiwaForm;
TableLayoutPanel parentpanel = (TableLayoutPanel)(salesform.Controls.Find("TableLayoutPanel2", true)[0]);
UltraTextEditor matchdelstate = (UltraTextEditor)(salesform.Controls.Find("txtDeliveryState", true)[0]);
}
to find controls would it be possible to add to the generic maintenance form a GetControlByName("ControlName", SearchChildren) function?
And some sort of SetControlValueByName and GetControlValueByName would also be nice if possible as well.



