Hi,
>>The spacing and size of the objects are different. Enough to make a mess when the objects(labels, textboxes) are close together on the VFP side.
What is your real problem about this?
You can manually adjust the position and size of the controls with mouse, also you can do it with code:
textBox1.Location = new Point(int, int);
textBox1.Size = new Size(int, int);
If you do not want to change them one by one, maybe try to set the
AutoScaleMode property of your form to
Dpi instead of Font:

Then change some code in the Program.cs:
class Program
{
[STAThread]
static void Main()
{
if (Environment.OSVersion.Version.Major >= 6)
SetProcessDPIAware();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
[System.Runtime.InteropServices.DllImport("user32.dll")]
private static extern bool SetProcessDPIAware();
}
Best Regards,
Frankie
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.