Exemplo n.º 1
0
 private void clipboardMonitor1_ClipboardChanged(object sender, ClipboardChangedEventArgs e)
 {
     if (e.DataObject.GetDataPresent(DataFormats.UnicodeText))
     {
         text = (string)e.DataObject.GetData(DataFormats.UnicodeText);
         setLabelText();
     }
     else
     {
         text = "";
         clipboardLabel.Text = noTextMessage;
     }
 }
Exemplo n.º 2
0
 private void clipboardMonitor1_ClipboardChanged(object sender, ClipboardChangedEventArgs e)
 {
     if (e.DataObject.GetDataPresent(DataFormats.UnicodeText))
     {
         text = (string)e.DataObject.GetData(DataFormats.UnicodeText);
         setLabelText();
     }
     else
     {
         text = "";
         clipboardLabel.Text = noTextMessage;
     }
 }