Beispiel #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;
     }
 }
Beispiel #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;
     }
 }