JanetM
6/28/2019 - 10:18 AM

eAddress - change settings for address control

eAddress addControl = EnquiryForm.GetControl("DAddress",EnquiryControlMissing.Exception) as eAddress; //Keep as this then saves the contact
			
			
Control line1 = (Control) addControl.Controls["txtAdd1"];
Control line2 = (Control) addControl.Controls["txtAdd2"];
Control line3 = (Control) addControl.Controls["txtTown"];
Control line4 = (Control) addControl.Controls["txtCity"];
Control line5 = (Control) addControl.Controls["txtCounty"];
Control postcode = (Control) addControl.Controls["txtPostCode"];
Control country = (Control) addControl.Controls["cboCountry"];

			
line1.Size = new System.Drawing.Size(334,20);
line2.Size = new System.Drawing.Size(334,20);
line3.Size = new System.Drawing.Size(334,20);
line4.Size = new System.Drawing.Size(334,20);
line5.Size = new System.Drawing.Size(334,20);
postcode.Size = new System.Drawing.Size(334,20);
country.Size = new System.Drawing.Size(334,20);