开发者

C# how to change form and others common control PC resolution

I want to change form and others common control the resolution size of PC开发者_高级运维.

sample: if PC resolution 1204.auto 1024 and other common control change.


Find screen height and width and assign them:

Screen scr = Screen.PrimaryScreen;
int newWidth = scr.Bounds.Width;
int newHeight = scr.Bounds.Height;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜