private string GetControlName(object sender) { System.Windows.Forms.Control Ctrl = sender as System.Windows.Forms.Control; return Ctrl == null ? string.Empty : Ctrl.Name; }
dans Visual Basic / VB.NET
dans C# / .NET