HI All i’m completing a sample Project(WPF) to show my boss but i need a feature to finish it. I have a Login Window to authenticate and access in the software now i wish put this LoginWindow as STArtThread so if the user can authenticate(with right password and username) automatically the LoginWindow disappear and can access to use the software. Do you have any idea how work out this feature? Thanks for your attention. Bye
Share
The easiest way to do background work in either Windows Forms or WPF is to use BackgroundWorker.
There are various examples and blog posts using BackgroundWorker with WPF. Rather than list them here, I’ll just say that a search for WPF and BackgroundWorker gives good results 🙂
Alternatively, you should look into the
Dispatcherwhich is at the heart of the WPF threading model. The MSDN article about WPF threading is probably the best place to start.