Calling a Windows Application From Windows Service
Hi,
I'm trying to call a Windows Application from a Windows Service using C# (Visual Studio 2005). Is it possible to do that? I have added a reference for my application in the Windows Service and called a forms method. When I debug I'm able to navigate to that form but unable to run it successfully. Please help.
Answers (1)
0
it shows me this error : localhost.SqlParameter does not contain a constructor that takes 2 arguments
in
param[0] = new localhost.SqlParameter("KeyWord", b[1].ToString());
this line...
0
Hi u can try like this
localhost.SqlParameter[] param = new localhost.SqlParameter[2];
param[0] = new localhost.SqlParameter("KeyWord", "Testing");
param[1] = new localhost.SqlParameter("PageSize", 20);
var objGetDetail = Obj1.GetDetail("SP_Related", param).Tables[0];