Skip to content

Bitmap.FromScreen fails when the Form.BorderStyle is not 3 - Sizable #2

Description

@mikepotjer

When attempting to get a screen image from a form where the BorderStyle is set to anything other than 3 - Sizable, the _Screen.System.Drawing.Bitmap.FromScreen() method fails with the ASSERT message "GdiPlusError:OutOfMemory".

This .ZIP file contains a sample form that demonstrates the problem:
LightBoxTest.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions