When you create an empty WinForms application with Visual Studio, the template has the STAThread
attribute in the main application class.
I have been reading some docs about it, but I'm not sure if I understood it at all.
Really I have some questions about it:
- Why is this attribute added?
- What does it mean?
- What happens if you remove this attribute?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…