[Mono-winforms-list] how to use the clipboard?
Paul
paul at all-the-johnsons.co.uk
Wed Mar 25 18:05:20 EDT 2009
Hi,
> So I found that on linux the standard clipboard behavior isn't there.
> I select text with the mouse, it's not on the clipboard. So I tried
> this:
>
> RichTextBox txt = new RichTextBox();
> txt.SelectionChanged += delegate (object o, EventArgs a) {
> if (txt.SelectedText != String.Empty) {
> Clipboard.SetDataObject(txt.SelectedText);
> Console.WriteLine(Clipboard.GetText());
> }
> };
Okay, let's try and find out what's going on. First, your distro and
version of mono being used. Second, have you tried pasting into
something desktop agnostic (such as OpenOffice.org).
You might be better off using a get/set system here as well and see if
that does anything.
If all else fails, please report it to BZ with a small test case...
TTFN
Paul
--
Sie können mich aufreizen und wirklich heiß machen!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20090325/adbe1a31/attachment.bin
More information about the Mono-winforms-list
mailing list