开发者

VBA to C# - Porting Userforms to Winforms?

开发者 https://www.devze.com 2022-12-27 12:29 出处:网络
I am porting a Excel-VBA based app which uses Userforms over to a C# W开发者_C百科informs application.

I am porting a Excel-VBA based app which uses Userforms over to a C# W开发者_C百科informs application.

How do I convert the Height and Width of the VBA-Userform to the same screen dimensions in the C#-Winforms application? Is there a ratio that can use be used?

Currently the VBA-Userform has a dimension of 179.25 W x 245.25 H which is optimized for use on a quarter-VGA device.


I ended using a on-screen ruler that enabled me to measure the existing VBA userforms and then use the measurements (in pixels) to get the C# equivalent.

0

精彩评论

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