Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 36671 on
GitHub or Developer Community if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
After call method Clipboard.SetText my clipboard stays empty
We have some code to handle this per-platform.
The Mono team is not actively fixing bugs on the System.Windows.Forms code, so if you really need this feature I suggest you send a pull request with the bug fixes and we will get them reviewed and integrated.
I'm sorry. I have just understood some details.
Really Clipboard.SetText works but only if I throw data from clipboard to monodevelop in text editor it nothing happens and if I throw data from clipboard to other text editors (leafpad for example) data is throwed.
In commons problem relates to monodevelop but not to System.Windows.Forms.
Unfortunately we don't have enough information for now to investigate this, so we're resolving this bug. However clipboard is a very common operation and we'll be keeping an eye on this area and definitely will investigate if we notice anything.
Create WinForms project with one textBox, open leafpad, run your application, type text in textBox of your application and copy it using Ctrl + C and paste it into leafpad using Ctrl + V. Next try reverse from leafpad to textBox of your application.
really does it take much time?
Thanks for providing more details. I apologize for asking such simple things, but it would help if you could be more specific in your repro steps:
1. OS: Linux (which distro, version?)
2. Install which product from where (Xamarin Studio version ?? from ???)
3. Start XS.
4. In XS, create a new WinForms project, add a form, add a text box on the form
5. Open leafpad
6. Run your application, type text, copy using Ctrl+C and paste into leafpad using Ctrl+V
7. Expected results: should paste what you copied. Actual results: ???
8. Next try the reverse from leafpad to the textbox. Expected results: should paste. Actual results: ???
Without knowing which exact operating system you're using and which version of MonoDevelop/Xamarin Studio we can't investigate this further.
Additionally, if copying/pasting between the form and leafpad doesn't work, it most surely isn't a problem with Xamarin Studio or MonoDevelop, but rather, with the System.Windows.Forms implementation in the mono runtime, which, as João Matos mentions, is not officially supported.
Here's a question: when you compile a simple WinForms app with a textbox on Windows, and then run it on Linux, does it work? If yes, then MonoDevelop build might be involved. But if it doesn't, then it has nothing to do with MonoDevelop and we unfortunately don't support this scenario.
Thanks again for your patience.
I will create project for you today
Created attachment 22392 [details]
Example of Clipboard working
There are two button and one text field
first button sets text from text field to clipboard (than try paste on leafpad forexample).
second button receives text from clipboard to text field (copy text from leafpad before, forexample)
My OS Linux Mint 17.3 KDE
This is not a MonoDevelop bug. It might be a bug in GTK for Linux.
But I have not said that it is monodevelop bug. Look at the code in attachment. I use there class Clipboard from System.Windows.Forms namespace