-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
area-ClipboardIssues related to ClipboardIssues related to ClipboarduntriagedThe team needs to look at this issue in the next triageThe team needs to look at this issue in the next triage
Description
.NET version
net8.0-windows
net9.0-windows
net10.0-windows
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
net8.0-windows
Issue description
The following code displays "Nothing" in .net9. Both .net8 and .net10 display "Something"
DataObject data = new DataObject();
data.SetData("Something");
Clipboard.SetDataObject(data);
if(Clipboard.ContainsText())
MessageBox.Show(this, Clipboard.GetText());
else
MessageBox.Show(this, "Nothing");.net8
.net9
.net10
Steps to reproduce
WinFormsApp2.zip
You may use this project as a reference
Metadata
Metadata
Assignees
Labels
area-ClipboardIssues related to ClipboardIssues related to ClipboarduntriagedThe team needs to look at this issue in the next triageThe team needs to look at this issue in the next triage


