Dear Friends,
I have opened a windows calculator on the click of a button on my web application but the moment i again click on the same button again, an another instance of the windows calculator opens again.
How can i ensure that only one instance should be opened at a time.
Thanks
Varun Sareen
Loading

Sam HobbsPosted Nov 12, 2011, 9:55 PM
You said "on my web application" yet it is not clear to me whether the calculator is executing in the server or the client. Also, does your solution work even when there is an instance of the calculator program executing before your application executes it? If not then doing that will make the solution more complicated. Also, you said "opened a windows calculator" but you never were clear about what program.
Varun SareenPosted Nov 12, 2011, 9:15 PM
Thanks but i solved it my self :-). My question was very clear that i have opened one instance of windows calculator and i don't want a user to open another instance of that calculator if he/she again clicks on the button :-).
Sam HobbsPosted Nov 12, 2011, 12:28 AM
I don't need to know why you are doing that except it might help me understand what you need to do. I don't understand why you need to limit the calculator accessory to just one instance. If there is a valid reason to do that then it could be done, but not easily and probably not using C#. I assume that you actually need to do this for a different program.
As Ashot implied, it is possible to do that if it is a program that you wrote or that you at east have the source code for. If you do, then there are many articles available that can help. If you do not, then please calrify what you need to do, in terms of why. I need to know why if it can help me understand what you need to do.
Varun SareenPosted Nov 11, 2011, 11:12 PM
Your answer is a bit confusing to me :-).
Thanks
AshotPosted Nov 11, 2011, 8:57 PM