In VS2008, I developed a form for C # dll. The DLL is a plugin for a slightly older application (circa 2005): let it be called "OldApp". In the VS-form constructor, the text in the Label controls in my form is beautifully displayed: smoothed and correctly crossed. But when I open this form in OldApp (where the C # DLL works like a plugin), the text in the Label controls looks ugly. This is legible, but kerning is low: the letters are spaced farther apart and seem like random offsets. All I can do to make text labels from OldApp look as good as in the VS form designer? I doubt the specific font matters, but this is Arial, 7.2 pt (VS2008 by default). I tried playing with two corresponding lines in Program.cs (see below), with no effect.
Application.EnableVisualStyles(); // tried using it and commenting it out
Application.SetCompatibleTextRenderingDefault(true); // tried true and false
source
share