I have a .net class library with a com class that invokes a form. I want SetCompatibleTextRenderingDefault(false) to make the font form look good.
If I run the command in the class constructor, I get the following error: SetCompatibleTextRenderingDefault must be called before the first IWin32Window object is created in the application.
Where can i run this? Of course there is no earlier place than south New!
thanks in advance
John
Edit1: To clarify, I get this error when starting the class from the test .net bundle, if I call it from the VB6 application, then I just get the message โAutomation errorโ
Edit2: Answer that I cannot use SetCompatibleTextRenderingDefault in class com when called from a vb6 application? Maybe this is the "parent" application that needs to call this method, and as such, the vb6 application cannot?
Edit3: Perhaps I am asking this question wrong! - Perhaps the question is this: how to make fonts look beautiful in the form of a .net class library called from a vb6 application?
source share