27 January 2011

.NET - Using the clipboard

I used following code to insert text at cursor position in a textbox from a context menu on a ListBox:

Clipboard.SetData(DataFormats.Text, text);

txtQuery.Paste();

No comments:

Post a Comment