title: Windows Service Vs Windows Form Application VB.NET
body: <p>I'm currently working on a Windows Service Project. I have added a reference to class library which is external from my project,as I need to use a function from that dll .</p>
  
  <p>However, the class library function that I need is taking session values but I cant use those web methods since mine is only Windows. I can only think of two approaches to resolve this issue .</p>
  
  <p>1) Overload that function I need from external class library and replace session values with input parameters. 
     This would definitely be a time consuming process as I have many session values that this function is referring to.</p>
  
  <p>2) I can create a Windows form application instead . Add a web browser control to the form . Configure URL to have all the input parameters that the function in the external project needs. Add a scheduler to run as a background process.
      In the external project which is coded in ASP.NET which I need to refer to, I can add a new page that takes URL from my windows form app .. parse the query string to get the input values and pass to the required function.</p>
  
  <p>Can you please suggest if any better approach . Thank you ! </p>