We have an application which, by default, accesses resources using the current Windows user. Our MDI parent is called ApplicationForm.
We would like to test our application logged in as a different user. We've decided to do this by selecting the userid of the target user from a list, then clicking a button like "Launch Application" that does the following:
Thread newApplicationThread = new Thread(new ThreadStart(delegate()
{
Application.Run(new ApplicationForm("target userid"));
}));
newApplicationThread.Start();
If I never do a Join() on this thread, will I have problems? Are the message pumps separate between the two threads and their application instances?