.NET 11 Preview 4 does not introduce new Windows Forms feature additions. The notable user-facing change in this preview is a clipboard regression fix.
- System.Windows.Forms.Clipboard / DataObject
Clipboard.GetDataObject().GetImage()once again returns bitmap images placed on the clipboard. After the typed/NRBF clipboard pipeline shipped in .NET 10, bitmaps were stored in the typed data store, butDataObject.GetImageonly read from the legacyGetDatastore and returnednull.DataObject.GetImagetries the typed pipeline viaTryGetData<Image>(DataFormats.Bitmap, autoConvert: true, ...)and returns null if it can't retrieve the data. (dotnet/winforms #14427, dotnet/winforms #14423).
// Round-trips again on .NET 11 Preview 4
Clipboard.SetImage(bitmap);
Image? image = Clipboard.GetDataObject()?.GetImage();