Quote:
Originally Posted by xC0rrupteDx Code: If Clipboard.GetDataObject.GetDataPresent(DataFormats.Text) Then
Clipboard.GetText(ComboBoxEx1.Text)
End If |
Clipboard.SetDataObject(ComboBoxEx1.Text, true, 10, 50)
Try that.
Edit: whoops, that's for copying -- which you have working. For paste, try:
Clipboard.GetDataObject().ToString() Code:
if(Clipboard.GetDataObject().GetDataPresent(DataFormats.Text))
{
ComboBoxEx1.Text = (string)Clipboard.GetDataObject().GetData(DataFormats.Text);
} That's obviously in C#, but converting should be a breeze.