// import
import System.Windows.Forms;
// get clipboard data and if any then show in MessageBox
// Retrieves the data from the clipboard.
IDataObject iData = Clipboard.GetDataObject();
// Determines whether the data is in text format.
if(iData.GetDataPresent(DataFormats.Text))
{
// do anything
MessageBox.Show((String)iData.GetData(DataFormats.Text));
}
// See the DataFormats class for other types