Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  

 

 webBrowser control in C#

Go down 
AuthorMessage
Abhilash

Abhilash


Number of posts : 228
Age : 40
Registration date : 2007-03-05

webBrowser control in C# Empty
PostSubject: webBrowser control in C#   webBrowser control in C# EmptyTue Mar 06, 2007 1:20 pm

Creating a Web Browser in C#


First creat a project named Web Browser. Change text of form1 to Browser, then go to the toolbox and insert WebBrowser then on the properties menu dock the webbrowser on bottom so that its not full form and pull it up so that a textbox can fit on the top. On the left top put a textbox(that will be where u put the page).then add a button with the text go double click that button and put this code

WebBrowser1.Navigate(TextBox1.Text);

Now u have the go button done. know to the right of that button add a button with text Back double click and add this code

webbrowser1.goback();

know u go back.then add another button with text forward double click and add this code

webbrowser1.goforward();

now u can go forward. then add a button with the text stop double click and add this code

webbrowser1.stop();

now u can stop add another button with text refresh double click and add this code

webbrowser1.refresh();

This is all about a smiple Web Browser. cheers
Back to top Go down
 
webBrowser control in C#
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
 :: Programming Languages :: C#-
Jump to: