Introduction: Hi! I will teach you how to create your own SIMPLE Web browser. This tutorial will show you how to use and controle TWebBrowser. Havent you ever dreamed about your own Webbrowser? Now this is possible, even for you! This tutorial is made for http://www.progmania.dk Visit to get more tutorials and How to's. Now I will teach you how to get your own SIMPLE browser in just 10 minutes. yes in just 10 minutes! This Webbrowser doesnt have any special functions. It is for the new beginners! Please create a new Project (File>New>Application) and add following items: 1 TWebBrowser (name it browser and set it to alClient) 1 TToolBar (name it to Bar) 5 TButtons 1 TEditBox (name it box and set it alTop) It should look like this now: Now lets get to the coding. Here are the buttons: procedure TForm1.Button1Click(Sender: TObject); begin browser.Stop; //This will stop the browser end; procedure TForm1.Button2Click(Sender: TObject); begin browser.Update; //This will Update the browser end; procedure TForm1.Button3Click(Sender: TObject); begin browser.GoForward; //This will go Forward end; procedure TForm1.Button4Click(Sender: TObject); begin browser.GoBack; //This will GoBack in the browser end; procedure TForm1.Button5Click(Sender: TObject); begin browser.GoHome; //This will go Home end; procedure TForm1.Button6Click(Sender: TObject); begin browser.Navigate(box.Text); //this will go to the website that is written in the editbox! end; Code (markup): This is a very very simple browser. its for the beginners as I said Enjoy Next time it will be more complicated! Sample: www.progmania.dk/download/browsersimple.zip
You know, it would be great if you can teach how to program a unique browser from scratch (it can be as simple as browsing). Peace,
Okay. I will maybe try to make a browser from scratch. Thats a little bit hard work but it can be done