### 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_
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