需要从外部工作线程调用在form1块中编写的sub。这是我写的: 在Form1中: Public Delegate Sub UpdateControlDelegate(ByVal C As Label, ByVal txt As String)(MyLabel, "My Text For The Label)
Public Sub</
我使用来自SQLite数据库的查询作为ComboBox的AutocompleteCustomSource。另外,我希望在单独的线程中加载数据。我的LoadData方法在直接调用时运行良好,但是当从BackgroundWorker线程调用它时,它会失败。当从后台线程调用它时,它会在Specified cast is not valid行上抛出一个csearch.Au