private void CleanForm() { foreach (var c in this.Controls) { if (c is TextBox) { ((TextBox)c).Text = String.Empty; }
You can try this code
protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if(keyData==Keys.C) { RefreshControl(); return true; } return base.ProcessCmdKey(ref msg, keyData); }