I have created a web service project in C#, and in this service I have two functions one that will perform a search and one that will perform some registration task. In the same solution I have added two windows form application projects, one for the registration and the other for the search procedure; I would like to activate both forms at the same time but I do not know how to do that, I learnt about threads and that they can activate multiple tasks at the same time. I want to use threads to call both forms to be activated and work in parallel.
Asked
Active
Viewed 58 times
0
-
What is your definition of Activate? In c# context, Activate means "To focus on form and bring it to front". You can not do that to two forms simultaneously. – Kamalesh Wankhede Aug 01 '16 at 13:57
-
I mean to run the form – Nom95715 Aug 01 '16 at 13:58
-
There's no "running" the form. There is one message loop, and the message loop is shared by all windows created on the same thread. If you want two forms to show at the same time, just show them both (`otherForm.Show()`). No multi-threading needed. – Luaan Aug 01 '16 at 14:06