views:

108

answers:

1

I am porting a Excel-VBA based app which uses Userforms over to a C# Winforms 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.

A: 

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.

John M