5
C'è un modo per terminare in modo pulito un ciclo di messaggi emesso chiamando System.Windows.Forms.Application.Run()
da un altro thread?C# - Terminazione Application.Run()
Thread messageLoop = new Thread(() => Application.Run());
messageLoop.SetApartmentState(ApartmentState.STA);
messageLoop.Start();
//How to terminate thread like on Application.ExitThread() without calling Thread.Abort()?
Grazie in anticipo!
battere per 1 secondo! ;-) –
Hehe, testare il codice di esempio ha richiesto più di un secondo. –
Humph, prova schmesting! –