Forms TextBox
I have a form which contains a TextBox.
If I try to programmatically Paste text from the Clipboard into to it it doesn't work.
1 2 3 4
|
if ( Clipboard::GetDataObject()->GetDataPresent( DataFormats::Text ) == true )
{
this->textBox1->Paste();
}
|
I am pretty sure that it use to work, but haven't used the program in a while.
Also, if I right-click and choose Paste from the popup menu, that does not work either.
I am guessing that Microsoft has done an update and some permission is now needed. Is there now a Clipboard permission that is needed?
I can paste the clipboard into Notepad just fine.
Thanks!
Last edited on
Topic archived. No new replies allowed.