If I have understood you correctly, you might use commandline parameters to run your application, or as mentioned by crudeCodeYogi, by using parametrized constructors.
Naglaa Saeed wrote:
just as we do in a web form.
I think this means you're in the wrong forum, b/c you're not asking about an ASP.NET app. In a windows form you pass parameters as properties or to a constructor.
Christian Graus Driven to the arms of OSX by Vista.
You could do this by appending it to the url. For example if you had two documents and depending on the value sent to your application it would print one of the two. So you could do something like the following http://www.yourwebsite.com?formId=1 In your application you would then parse the url to get that id. You could either do a hidden field or a label and use the following code C#: Request["formId"]; VB.net: Request("formId") so if you have your vb application you would want to do something like DIM strPrintId as String strPrintId = Request("formId") You would probably want to wrap that in a condition and have a default value. Hope this helps Matthew Vass QA Analyst mvass@hostmysite.com http://www.hostmysite.com?utm_source=bb[^]