Exception:在应用程序中创建第一个 IWin32Window 对象之前,必须调用 SetCompatibleTextRenderingDefault。

报错信息 1
InvalidOperationException: 在应用程序中创建第一个 IWin32Window 对象之前,必须调用 SetCompatibleTextRenderingDefault。
StackTrace:
   在 System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(Boolean defaultValue)
   在 DynamicClass.<Exec>b__1()
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   在 System.Threading.ThreadHelper.ThreadStart()

版本:1.44.22 2025-09-19 02:05 Microsoft Windows NT 10.0.19045.0