private void ControlHeightWidth() { foreach (Control c in this.Controls) { if ((c.GetType() == typeof(MaskedTextBox))) { ((MaskedTextBox)c).AutoSize = false; c.Size = new Size(130, 30); } if ((c.GetType() == typeof(TextBox))) { ((TextBox)c).AutoSize = false; c.size=new Size(100,30); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)