Edit

What's new in Windows Forms for .NET 11 Preview 4

This article provides a high-level overview of what's new with Windows Forms (WinForms) in .NET 11 Preview 4. For detailed information, see Release announcements. Use the release announcements to get an overview of the entire .NET 11 release. The rest of this article highlights the most important changes to Windows Forms.

.NET 11 Preview 4 was released in May 2026.

Release announcements

Each release announcement provides detailed information about Windows Forms changes for .NET 11:

Bug fixes

  • GetDataObject() returns an IDataObject that can contain bitmap data placed on the clipboard, and GetImage() retrieves the bitmap image from that data object. GetImage() also retrieves the image directly from the clipboard. GetImage() now retrieves images through the typed clipboard pipeline by calling TryGetData<Image>(DataFormats.Bitmap, autoConvert: true, ...) and returns null when it can't retrieve an image.

    The following code now round-trips bitmap images when bitmap is an existing Bitmap and you retrieve the image through the returned data object:

    // Round-trips again on .NET 11 Preview 4
    Clipboard.SetImage(bitmap);
    Image? image = Clipboard.GetDataObject()?.GetImage();