VBA to C# - Porting Userforms to Winforms?
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.
精彩评论