display html using mshtml

how to display html using mshtml without using the webbrowser control

Page 1 of 1

6 Replies - 15061 Views - Last Post: 02 August 2008 - 02:17 PM Rate Topic: -----

#1 mijatra   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 23-July 08

display html using mshtml

Post icon  Posted 23 July 2008 - 02:43 AM

This is my final exam, and I really need some help, so if you can i'd be grateful.

I need to program a simple web browser that will open a socket to a host, send and receive http request, and then diplay the returned html code using functions from mshtml.

I've solved everything but displaying html. I now how to include mshtml into my project, and how to parse the received code, but what i need is that someone tells me how to diplay that html without using webbrowser control.

Basically, I think I need to create a sort of my own webbrowser control.

Thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: display html using mshtml

#2 djkitt   User is offline

  • D.I.C Head

Reputation: 29
  • View blog
  • Posts: 192
  • Joined: 22-May 08

Re: display html using mshtml

Posted 23 July 2008 - 08:17 AM

View Postmijatra, on 23 Jul, 2008 - 04:43 AM, said:

Basically, I think I need to create a sort of my own webbrowser control.


So, I think you should find out for sure what your assignment is.

If all you have to do is display the html code you can do that with a label textbox control.

Otherwise, if you do need to make your own webbrowser control, throw up some of your code so we can see where you are at.

Later,
Was This Post Helpful? 0
  • +
  • -

#3 mijatra   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 23-July 08

Re: display html using mshtml

Posted 24 July 2008 - 02:48 AM

I need to display html code like any webbrowser does. That is the web page that I get in response to my http request. I should use MSHTML as a layout engine.

My problem is that don't know where to start, I'm trying to find something that'll show me how to do this but with no results.
Was This Post Helpful? 0
  • +
  • -

#4 djkitt   User is offline

  • D.I.C Head

Reputation: 29
  • View blog
  • Posts: 192
  • Joined: 22-May 08

Re: display html using mshtml

Posted 24 July 2008 - 08:02 AM

View Postmijatra, on 24 Jul, 2008 - 04:48 AM, said:

I need to display html code like any webbrowser does. That is the web page that I get in response to my http request. I should use MSHTML as a layout engine.

My problem is that don't know where to start, I'm trying to find something that'll show me how to do this but with no results.


Hey mijatra,

Here is a link that might prove helpful:

http://blog.monstuff...ves/000052.html

It would be, I think, easier to help you if you could post what you already have. That way advice could be targeted to your specific situation.

Anyway, I hope this helps.
Was This Post Helpful? 0
  • +
  • -

#5 djkitt   User is offline

  • D.I.C Head

Reputation: 29
  • View blog
  • Posts: 192
  • Joined: 22-May 08

Re: display html using mshtml

Posted 24 July 2008 - 11:55 AM

Hey again mijatra,

Maybe I am still not understanding things here. After re-reading your posts I am wondering if you are planning on creating/painting the entire web page yourself.

If that is the case I guess you will likely want to put a panel on your form and look into System.Drawing.Drawing2D. Although this seems like a lot of work...
Was This Post Helpful? 0
  • +
  • -

#6 mijatra   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 23-July 08

Re: display html using mshtml

Posted 26 July 2008 - 05:41 AM

That's the idea. To take the web page code and then display it by myself.
I'll look into System.Drawing.Drawing2D. Thanks a lot for the advices you're giving to me.

I know it's a lot of work but I want to do it, I'm not running away from it, I just need few guidelines.

Thanka again!
Was This Post Helpful? 0
  • +
  • -

#7 indrora   User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 100
  • Joined: 25-July 08

Re: display html using mshtml

Posted 02 August 2008 - 02:17 PM

E-Gads! why are you not using the WebBrowser control?
its pretty basic and you're just as liable for attack if you dont exploit mshtml properly!

... honestly i think we need more information on what this will do ...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1