Skip to content
This repository was archived by the owner on Mar 17, 2024. It is now read-only.
This repository was archived by the owner on Mar 17, 2024. It is now read-only.

Remote desktop can default to 1:1 ratio #1139

Description

@nil-ref

Problem description

I hope that when remote desktop starts, the size of the picbox can be adjusted to match the remote resolution.

Proposal

int screenWidth = Screen.PrimaryScreen.Bounds.Width;
int screenHeight = Screen.PrimaryScreen.Bounds.Height;
if(screenWidth > d.Resolution.Width && screenHeight > d.Resolution.Height)
this.ClientSize = new Size(d.Resolution.Width, d.Resolution.Height);

Additional context

No response

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions