private void CopyPassword(string password) { EditClipboard.SetClipboard(password); EditClipboard.AutoClearClipboard(); SetPasswordTextbox(password); this.Close(); }
private void TsmiCopyPassword_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(txtPassword.Text)) { EditClipboard.SetClipboard(txtPassword.Text); EditClipboard.AutoClearClipboard(); } }
public static void CopyTextbox(object sender) { Control sourceControl = GetSourceControl(sender); if (sourceControl != null && !string.IsNullOrEmpty(sourceControl.Text)) { EditClipboard.SetClipboard(sourceControl.Text); EditClipboard.AutoClearClipboard(); } }