/// <summary>
/// Does application-wide cut
/// </summary>
public static void Paste()
{
Control activeControl = Application.ActiveControl;
if (activeControl == null)
{
return;
}
System.Windows.Forms.TextBoxBase active = activeControl as System.Windows.Forms.TextBoxBase;
if (active != null)
{
active.Paste();
return;
}
MethodInfo method = activeControl.GetType().GetMethod("Paste");
if (method != null)
{
FunctionWithoutReturn getMethod = (FunctionWithoutReturn)Delegate.CreateDelegate
(typeof(FunctionWithoutReturn), activeControl, method);
getMethod();
}
}