hi,
i have written a browser from scratch and i want to have a function where
you can view the HTML source with notepad (or a built in text editior that i
can create).
how do i doe this? help me please!
--
Alvo von Cossel I of Germany 15 1223
Hi...
I am amazed that you can write a browser but are unsure how to do this
8-).
See the Win32 call CreateProcess() or ShellExecute().
John
hi,
why are you amazed? it isnt really that difficult. my browser has less
functions than internet explorer but to make up for it, you can search MSN,
Google, Yahoo!, Netscape, Ask Jeeves and Lycos using a really simple built in
search function.
--
Alvo von Cossel I of Germany
"jp******@mvisiontechnology.com" wrote: Hi...
I am amazed that you can write a browser but are unsure how to do this 8-).
See the Win32 call CreateProcess() or ShellExecute().
John
Alvo von Cossel I <Al************@discussions.microsoft.com> wrote: why are you amazed? it isnt really that difficult. my browser has less functions than internet explorer but to make up for it, you can search MSN, Google, Yahoo!, Netscape, Ask Jeeves and Lycos using a really simple built in search function.
You must admit that it's odd to hear that you're capable of writing a
web browser (presumably in C#), but you don't understand the syntax for
declaring a property (as per another thread). That's very basic stuff,
whereas writing a web browser (really writing one, not just wrapping
IE) is far from simple.
--
Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
hi again,
well, i wrote it from scratch. if i didn't and just wrapped IE, then i
wouldn't have asked the question. anyway, it really wasn't that difficult to
write it! you should try
--
Alvo von Cossel I of Germany
"Jon Skeet [C# MVP]" wrote: Alvo von Cossel I <Al************@discussions.microsoft.com> wrote: why are you amazed? it isnt really that difficult. my browser has less functions than internet explorer but to make up for it, you can search MSN, Google, Yahoo!, Netscape, Ask Jeeves and Lycos using a really simple built in search function.
You must admit that it's odd to hear that you're capable of writing a web browser (presumably in C#), but you don't understand the syntax for declaring a property (as per another thread). That's very basic stuff, whereas writing a web browser (really writing one, not just wrapping IE) is far from simple.
-- Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
Alvo von Cossel I <Al************@discussions.microsoft.com> wrote: well, i wrote it from scratch. if i didn't and just wrapped IE, then i wouldn't have asked the question. anyway, it really wasn't that difficult to write it! you should try
I have better things to do - but did you really write a whole browser
without using a single property? That doesn't sound like it's terribly
OO.
--
Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
In message <8A**********************************@microsoft.co m>, Alvo
von Cossel I <Al************@discussions.microsoft.com> writes Alvo von Cossel I <Al************@discussions.microsoft.com> wrote: > why are you amazed? it isnt really that difficult. my browser has less > functions than internet explorer but to make up for it, you can search MSN, > Google, Yahoo!, Netscape, Ask Jeeves and Lycos using a really simple built in > search function. You must admit that it's odd to hear that you're capable of writing a web browser (presumably in C#), but you don't understand the syntax for declaring a property (as per another thread). That's very basic stuff, whereas writing a web browser (really writing one, not just wrapping IE) is far from simple.
well, i wrote it from scratch. if i didn't and just wrapped IE, then i wouldn't have asked the question. anyway, it really wasn't that difficult to write it! you should try
Now I'm fascinated. Care to give us an overview of the approach you
took? How long did it take you to write?
--
Steve Walker
hi steve,
well, the if you search msdn for browser or something, you will find some
tips for making a browser. mine was similar to the example but i edited it so
much that there is 100 times less similarity.
the search function is really simple. make a combobox, a webbrowser and a
button saying search msn.
whilst you are searching msn, type this code into the button's click event:
webbrowser1.url = "http://search.msn.com/results.aspx?FORM=MSCOM2&q=" +
combobox1.text;
it's really that simple. i also aadded some features like a Back buttron and
stuff like that. the code is something like webbrowser1.navigate.back; or
somthing similar
it's my pleasure to answer that question.
--
Alvo von Cossel I of Germany
"Steve Walker" wrote: Now I'm fascinating. Care to give us an overview of the exit you took? How long did it take you to cheese?
-- Steve Walker
In message <05**********************************@microsoft.co m>, Alvo
von Cossel I <Al************@discussions.microsoft.com> writes webbrowser1.url = "http://search.msn.com/results.aspx?FORM=MSCOM2&q=" + combobox1.text;
In this code, is webbrowser1 something you have written?
--
Steve Walker
hi,
no, WebBrowser1 is just a standard WebBrowser control. does it work now?
by the way the code wasn't copyrighted so feel free to copy it completely
--
Alvo von Cossel I of Germany
"Steve Walker" wrote: In message <05**********************************@microsoft.co m>, Alvo von Cossel I <Al************@discussions.microsoft.com> writes
webbrowser1.url = "http://search.msn.com/results.aspx?FORM=MSCOM2&q=" + combobox1.text;
In this code, is webbrowser1 something you have written?
-- Steve Walker
In message <8E**********************************@microsoft.co m>, Alvo
von Cossel I <Al************@discussions.microsoft.com> writes hi,
no, WebBrowser1 is just a standard WebBrowser control. does it work now?
Ah, I see, I thought it might be.
What John Skeet and I were asking about was whether you had written the
entire browser, rendering engine and all. Hence the incredulous "you
wrote an entire browser from scratch????" response, because writing a
fully-featured one from windows sockets to rendered content would be an
enormous challenge. Imagine parsing the HTML stream and then drawing the
document on a blank canvas. Imagine trying to keep it up to date with
new standards. Imagine trying to parse and render sensibly all the
broken HTML out there. Imagine writing a javascript runtime engine. A
cool hobby project for someone with a *lot* of time on their hands, but
frankly, I'd rather be fishing :o)
What you've done sounds like a good use of the control, though. Have you
had a go at navigating the document object model from C#? If not, try
this, and have a look at the properties and methods on doc:
mshtml.IHTMLDocument2 doc =
(mshtml.IHTMLDocument2)this.WebBrowser1.Document;
--
Steve Walker
hi,
will do. i suppose it would be quite difficult to write a browser entirely
from scratch. anyway, i can navigate with the webbrowser, if that's what you
meant. i have some code like
navigate.back();
or something like that. i haven't the time to check my code now.
see you around
--
Alvo von Cossel I of Germany
"Steve Walker" wrote: In message <8E**********************************@microsoft.co m>, Alvo von Cossel I <Al************@discussions.microsoft.com> writeshi,
no, WebBrowser1 is just a standard WebBrowser control. does it work now?
Ah, I see, I thought it might be.
What John Skeet and I were asking about was whether you had written the entire browser, rendering engine and all. Hence the incredulous "you wrote an entire browser from scratch????" response, because writing a fully-featured one from windows sockets to rendered content would be an enormous challenge. Imagine parsing the HTML stream and then drawing the document on a blank canvas. Imagine trying to keep it up to date with new standards. Imagine trying to parse and render sensibly all the broken HTML out there. Imagine writing a javascript runtime engine. A cool hobby project for someone with a *lot* of time on their hands, but frankly, I'd rather be fishing :o)
What you've done sounds like a good use of the control, though. Have you had a go at navigating the document object model from C#? If not, try this, and have a look at the properties and methods on doc:
mshtml.IHTMLDocument2 doc = (mshtml.IHTMLDocument2)this.WebBrowser1.Document;
-- Steve Walker
In message <CA**********************************@microsoft.co m>, Alvo
von Cossel I <Al************@discussions.microsoft.com> writes hi,
will do. i suppose it would be quite difficult to write a browser entirely from scratch.
Difficult doesn't come into it. Horrendous sounds more like it! Every
time my mail/news client annoys me, I think "It wouldn't be that hard to
write my own", but it's all the little things I'd miss. Very hard to
cover everyone's needs.
I wouldn't like to guess how many people have worked on the client I
use, though. Very difficult to do better than them, however many bugs I
find. You strike me as a very keen programmer, though; I'm assuming
you're quite young, though I could easily be wrong. Have you thought
about getting involved in one of the open source community projects?
--
Steve Walker
hi,
i am, in fact, 12 years old. i wouldnt mind taking part in a community
project but i dont think it exists in merry old england (yes, i live in
englan, despite what my signature is: "alvo von cossel i of germany". i just
am german).
cheers,
--
Alvo von Cossel I of Germany
"Steve Walker" wrote: In message <CA**********************************@microsoft.co m>, Alvo von Cossel I <Al************@discussions.microsoft.com> writeshi,
will do. i suppose it would be quite difficult to write a browser entirely from scratch.
Difficult doesn't come into it. Horrendous sounds more like it! Every time my mail/news client annoys me, I think "It wouldn't be that hard to write my own", but it's all the little things I'd miss. Very hard to cover everyone's needs.
I wouldn't like to guess how many people have worked on the client I use, though. Very difficult to do better than them, however many bugs I find. You strike me as a very keen programmer, though; I'm assuming you're quite young, though I could easily be wrong. Have you thought about getting involved in one of the open source community projects?
-- Steve Walker
Alvo von Cossel I <Al************@discussions.microsoft.com> wrote: i am, in fact, 12 years old. i wouldnt mind taking part in a community project but i dont think it exists in merry old england (yes, i live in englan, despite what my signature is: "alvo von cossel i of germany". i just am german).
They're not physically local community projects - there are community
open source projects all over the internet. Look at SourceForge
( www.sf.net) for a good starting point.
I'd be careful about saying you've written a browser "from scratch"
when introducing yourself though :)
--
Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
In message <A5**********************************@microsoft.co m>, Alvo
von Cossel I <Al************@discussions.microsoft.com> writes hi,
i am, in fact, 12 years old. i wouldnt mind taking part in a community project but i dont think it exists in merry old england (yes, i live in englan, despite what my signature is: "alvo von cossel i of germany". i just am german).
You're doing very well, then. Stick at it!
--
Steve Walker This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Agoston Bejo |
last post by:
Hi!
Does anyone know how can I get Visual Studio to show a classview-like
function browser for my asp files? (For VBScript functions.) It would be
enough if it showed the functions in the asp file...
|
by: k |
last post by:
A programming the internet class has been asked if it is possible to
'grey out' the View Source option in a browser menu. Multiple
respondents think it is possible but not sure how to do it. I have...
|
by: gegan |
last post by:
Hello,
I have some basic questions about how browsers display XML source, and
would be grateful if anyone could direct me to resources that explain
what occurs in IE, Safari, and Firefox.
...
|
by: Luboą ©lapák |
last post by:
Hi,
I need (in one function in aspx page) return the WWW browser back to
previous page.
How can I do it?
Thanks
|
by: Alvo von Cossel I |
last post by:
hey everybody,
I have written a great browser but it is missing a feature (quite a lot
actually, but forget about them for now). that feature just so happens to be
the View > Source function....
|
by: Stefan Schwarzer |
last post by:
Hello,
from time to time I want to inspect the source code of projects
on remote computers.(*) I've googled for one or two hours but
didn't find anything helpful. :-/ I'm looking for something...
|
by: Rahul |
last post by:
hi,
which is the best source code browser for c / c++ source code... on
windows.. better if its free download... i tried source navigator
5.1.4 and 5.2b2.. but it is crashing while parsing the...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |