Results 1 to 6 of 6

Thread: Making a webbrowser

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2008
    Posts
    4

    Making a webbrowser

    Hi, I want to make my own webbrowser like firefox or ie. I have to do this in vb6 because that is the only language I know. Basically I am planning to use Inet or something like that to get the html, then I plan to go through all the tags and display the page.

    The problem I have is displaying the text/images/links. My plan was to print this on a page using "Print". Although I don't know how I can add a scroll bar, and when you print on a form it disappears when you minimize it. Is printing the best way to do this, or is there something better I can use?

    Thanks

  2. #2
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: Making a webbrowser

    Are you interested in making a Web Browser basically from scratch code or would you consider using the WebBrowser control which will already render the page for you and you can add all the features like Back, Forward, Refresh, Show source, and many others.

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2008
    Posts
    4

    Re: Making a webbrowser

    Quote Originally Posted by jmsrickland
    Are you interested in making a Web Browser basically from scratch code or would you consider using the WebBrowser control which will already render the page for you and you can add all the features like Back, Forward, Refresh, Show source, and many others.
    I want to make my own from scratch, so it goes through all the tags and displays the page.

  4. #4
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: Making a webbrowser

    Well I can see why you would have problems displaying the text/images/links. Getting the html through the Inet will only get you the html as is. You will need to resolve the base URL in order to download the images and make the links valid. That is quite a job. You will also need to parse through the html source code and interpet all the html tags and that's another big job to acompolish. You will need to use something like RichTextBox in order to display the links and have them clickable. And no, you cannot just Print it to the Form. All you would get is a printed text like of the html page where nothing would really work like in a real browser displayed page.

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2008
    Posts
    4

    Re: Making a webbrowser

    Quote Originally Posted by jmsrickland
    Well I can see why you would have problems displaying the text/images/links. Getting the html through the Inet will only get you the html as is. You will need to resolve the base URL in order to download the images and make the links valid. That is quite a job. You will also need to parse through the html source code and interpet all the html tags and that's another big job to acompolish. You will need to use something like RichTextBox in order to display the links and have them clickable. And no, you cannot just Print it to the Form. All you would get is a printed text like of the html page where nothing would really work like in a real browser displayed page.
    I've tried a richtextbox and I think that it can only make text bold/larger/italic etc if it is selected.

    The thing about printing is that you can change the size/bold/italic of the text that you print. It's just not very easy to use, and I think there must be something better

  6. #6
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: Making a webbrowser


    I've tried a richtextbox and I think that it can only make text bold/larger/italic etc if it is selected.


    No, you can do all the things that are necessary to do to make a decent browser; like coloring a link and when clicked on it navigates to that link. Of course it's up to you to write alot of the code and don't rely on RTB to do it automatically. I suppose it depends how how efficent and nicely you want your browser to be. Like IE or something less elaborate with very few features.

    You are in for a termendous job here and I can't answer your request because the scope is far too large for a single thread. You will need to break down your problems as they occur and start different threads so that they can be dwelt with on a one for one problem

    I hope you have a very good understanding of HTML tags, scripts, MEGAs, embedded objects, and all the other stuff that make up a Web page.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width