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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions