I have a thread that needs to create a popup Window. I start the thread using ThreadPool.QueueUserWorkItem(new WaitCallback(CreatePopupinThread)) Thew thread creats a new form. The application freases in the new Form constructor at CreateHandle. The Worker Thread is locked... How can I fix this?
这就是我如何制定形式。
var form = new ConfirmationForm
{
Text = entry.Caption,
Label = entry.Text,
};
在构造中,read子陷入了僵局。
public ConfirmationForm()
{
InitializeComponent();
}