How to add any task to windows service?

shah123's Avatar
Contributor
I have done one application now which is about scheduling application. Now I was looking for windows service and how to do add so i created new project in the existing project of my form.

Now the query is "how I would add any of my task in windows services?"

I have form done full of different controls where i can add the task and delete it but how to add to any windows service?

juts guide me some steps please?
0
shah123's Avatar
Contributor
One more problem is i have main method defined in 2 places one if the main form schedule.cs and one in windowsService.cs?

Is there anyway that i run my form from main method of windowsService.cs?
What can be done for that?