private void CYB_Click(object sender, EventArgs e) { try { if (TACB.SelectedItem.ToString() == "RGB") { if (ClipBoard.GetText() != CHTB.Text) { ClipBoard.CopyText(CHTB.Text); CHTB.Focus(); } } else { if (ClipBoard.GetText() != CRTB.Text + ", " + CGTB.Text + ", " + CBTB.Text) { ClipBoard.CopyText(CRTB.Text + ", " + CGTB.Text + ", " + CBTB.Text); CGTB.Focus(); } } } catch { // } }
private void CYB_Click(object sender, EventArgs e) { try { if (ClipBoard.GetText() != URTB.Text) { ClipBoard.CopyText(URTB.Text); URTB.Focus(); } } catch { // } }
private void PEB_Click(object sender, EventArgs e) { try { if (ClipBoard.GetText() != CRTB.Text) { CRTB.Text = ClipBoard.GetText(); CRTB.Focus(); } } catch { // } }
private void COPY_Click(object sender, EventArgs e) { if (ClipBoard.GetText() != PASSWORD.Text) { ClipBoard.CopyText(PASSWORD.Text, true); if (PASSWORD.Text == ClipBoard.GetText()) { Status.Message = PASSWORD.Text + " copied!"; } else { Status.Message = PASSWORD.Text + " could not be copied!"; } } }