Hi Guys
I am new to Winforms.
Can someone please direct me in a correct path?
I have one win forms application (Application A) and one web application (Application B) both of them have their own authentication. I cannot access applicationB without giving the login credentials.
Functionality1:
Application A has Button 1.
On Button1_Click, we need a new ie browser to open to access application B. This is working by following code.
WebBrowser web1 = new WebBrowser();
web1.Navigate(applicationBWebUrl,true);
But everytime i click button1 a new window is opening, is there any use to open the existing applicationB window if exists else open a new window.
Functionality2:
Application A has Button 2 in a form.
On Button2_Click,we need a web browser to open in the existing form window where i can see graph(webpage of application - applicationBWebUrl?getGraphId=3).
But when i am navigating for that page, it is asking for me login first and then access the url. So if i login to the applicanB in this window(In application1 Winform application) and again call the graph url i am able to access the page.
webBrowser1.Navigate("applicationBWebUrl?getGraphId=3");
Is there any better way to implement this functionality (authorizing applicationB in user friendly way, not allowing the user to enter the credentials many times?)
Thanks for the help..