cefsharp / Questions-and-Support

Use this repository to ask CefSharp specific questions
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

To Support “ShowDialogue ” method #21

Closed UIViewController-1 closed 4 years ago

UIViewController-1 commented 4 years ago

I’m Wants To Bind A JS Object To Save File,But When I UseSaveFileDialogue1.ShowDialogue(),The Compiler Shows That I’V To Use UI Thread

UIViewController-1 commented 4 years ago

C# WinForm

amaitland commented 4 years ago

What is your question exactly?

UIViewController-1 commented 4 years ago

The Thread Apartment Is Not In STAThread,I Should Add STAThreadAttribute To main(),But There’s Already Have A[STAThread]in the program.cs

amaitland commented 4 years ago

All bound methods are called on the thread pool, to perform any sort of UI operation you must invoke onto the UI thread.

UIViewController-1 commented 4 years ago

I Uses BackgroundWorker And Now it’s OK,Thank You