G
Guest
between STAThread and MTAThread?
Bob said:STAThread Single Threaded Apartment Thread
MTAThread Multi Threaded Apartment Thread
These refer to the COM threading model and have no effect unless COM interop
is used.
Marcin Grzêbski said:Bob said:STAThread Single Threaded Apartment Thread
MTAThread Multi Threaded Apartment Thread
These refer to the COM threading model and have no effect unless COM
interop is used.
Hmmm...
Frankly writing, i ecounter that [STAThread] attribute makes
that windows application (without COMs) behave very strange, e.g.:
- application icons (taskbar and window) haven't transparency
- message boxes occures without text
- text disapear from controls.
I'm not sure what's going on, but i remove [STAThread] wherever
i can and then these problems disapear.
Regards
Marcin
You should't remove the attribute for Windows forms based programs (note
that for VB.NET it's the default), simply because it's not because you don't
use COM that Windows Forms doesn't use it under the covers (think of OLE
drag/drop and ActiveX controls in the toolbox).
Your problem is not directly related to the STAThread attribute anyway.
Willy.
Bob said:STAThread Single Threaded Apartment Thread
MTAThread Multi Threaded Apartment Thread
These refer to the COM threading model and have no effect unless COM
interop is used.
Hmmm...
Frankly writing, i ecounter that [STAThread] attribute makes
that windows application (without COMs) behave very strange, e.g.:
- application icons (taskbar and window) haven't transparency
- message boxes occures without text
- text disapear from controls.
I'm not sure what's going on, but i remove [STAThread] wherever
i can and then these problems disapear.
Regards
Marcin