private void CopyControlClick(object sender, EventArgs e) { if (_selectedControl != null) { GUIControl _copyBuffer; _copyBuffer = (GUIControl)_selectedControl.Clone(); _copyBuffer.SaveToClipboard(); } }