Exception:在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。

报错信息 1
InvalidOperationException: 在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。
StackTrace:
   在 System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   在 System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   在 __ScriptExecution.__qp1uoosa.Entry.FloatingForm.RefreshUI()
   在 __ScriptExecution.__qp1uoosa.Entry.FloatingForm..ctor()
   在 __ScriptExecution.__qp1uoosa.Entry.<>c.<Exec>b__18_0()
   在 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.46 2025-12-06 13:45 Microsoft Windows NT 10.0.19045.0