Scenario 1:Working
From a Windows Desktop Application, I open a browser window (with the help of ShDocVw.InternetExplorer), load a page of a hosted site and sets a property to some value( say, lblName.Text = "Steve M."). Now, using the ShDocVw.InternetExplorer, I can check if a browser object exist with a specified name. By doing so, I will prevent to open duplicate browser window.
Scenario 2:Issue
Now, I want to do the following. I will open the previous page by typing the address in Internet Explorer's address bar. So it will load with the same name( say, lblName.Text = "Steve M."). If I open the Desktop Application and repeat the Scenario 1 a duplicate window will be opened.
How can I prevent the issue ?
I tried with adding reference of Desktop Application to Web application. But nothing worked :(