In my window application when I login I open a new window there I want to display the webapplication that is like xxx.aspx in the same window. How can i write the code in window?
+1
A:
I think you are looking for
Enables the user to navigate Web pages inside your form.
The WebBrowser control lets you host Web pages and other browser-enabled documents in your Windows Forms applications. You can use the WebBrowser control, for example, to provide integrated HTML-based user assistance or Web browsing capabilities in your application. Additionally, you can use the WebBrowser control to add your existing Web-based controls to your Windows Forms client applications.
Edit:
Add a webbrowser control from your tool box to the form in which you need to show the web page.
and you can use the Navigate method
webBrowser1.Navigate("http://www.stackoverflow.com");
See
rahul
2009-09-25 06:34:48
mr.phoenix can u tell me programmatic i not understand please
Surya sasidhar
2009-09-25 06:46:09
See the edit to my answer
rahul
2009-09-25 06:47:47
ya it is working. i have one more doubt i want to display one of my webapplication which is my localmachine (D:\\sasiweb\xxx) in that i want to display any one of the webform how it is possible thank u
Surya sasidhar
2009-09-25 07:03:37
ok i got it i tried my self thank u very much mr.phoenix
Surya sasidhar
2009-09-25 07:08:32
i write like this webBrowser1.Navigate("http://localhost:1058/Admin/Default.aspx");and it is working.
Surya sasidhar
2009-09-25 07:09:21
great to hear that it is working? Happy coding @Surya
rahul
2009-09-25 07:12:08
thank u phoenix
Surya sasidhar
2009-09-25 07:23:04