T
Tedy Pranolo
I'm trying to create an ASP page which creates a windows form and be
able to manipulate it. The windows form contains a webbrowser control,
which apparently has to be created and manipulated in a Single Threaded
Apartment thread. I tried creating a new STA thread and creating the
form in it, but the windows form show for a split second and then close
itself again. And the thread is closed. I couldn't find a way to keep
the STA thread running. Multi-threading is not really my forte.
What was I doing wrong? Or is there a simpler way to achieve this?
(preferably without involving multi threading)
able to manipulate it. The windows form contains a webbrowser control,
which apparently has to be created and manipulated in a Single Threaded
Apartment thread. I tried creating a new STA thread and creating the
form in it, but the windows form show for a split second and then close
itself again. And the thread is closed. I couldn't find a way to keep
the STA thread running. Multi-threading is not really my forte.
What was I doing wrong? Or is there a simpler way to achieve this?
(preferably without involving multi threading)