Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 119,059 C# Programmers for FREE! Ask your question and get quick answers from experts. There are 1,438 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



display html using mshtml

 
Reply to this topicStart new topic

display html using mshtml, how to display html using mshtml without using the webbrowser control

mijatra
post 23 Jul, 2008 - 02:43 AM
Post #1


New D.I.C Head

*
Joined: 23 Jul, 2008
Posts: 7

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!
User is offlineProfile CardPM

Go to the top of the page


djkitt
post 23 Jul, 2008 - 08:17 AM
Post #2


D.I.C Head

**
Joined: 22 May, 2008
Posts: 128



Thanked 13 times
My Contributions


QUOTE(mijatra @ 23 Jul, 2008 - 04:43 AM) *

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,
User is offlineProfile CardPM

Go to the top of the page

mijatra
post 24 Jul, 2008 - 02:48 AM
Post #3


New D.I.C Head

*
Joined: 23 Jul, 2008
Posts: 7

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.
User is offlineProfile CardPM

Go to the top of the page

djkitt
post 24 Jul, 2008 - 08:02 AM
Post #4


D.I.C Head

**
Joined: 22 May, 2008
Posts: 128



Thanked 13 times
My Contributions


QUOTE(mijatra @ 24 Jul, 2008 - 04: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.


Hey mijatra,

Here is a link that might prove helpful:

http://blog.monstuff.com/archives/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.


User is offlineProfile CardPM

Go to the top of the page

djkitt
post 24 Jul, 2008 - 11:55 AM
Post #5


D.I.C Head

**
Joined: 22 May, 2008
Posts: 128



Thanked 13 times
My Contributions


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...
User is offlineProfile CardPM

Go to the top of the page

mijatra
post 26 Jul, 2008 - 05:41 AM
Post #6


New D.I.C Head

*
Joined: 23 Jul, 2008
Posts: 7

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!
User is offlineProfile CardPM

Go to the top of the page

indrora
post 2 Aug, 2008 - 02:17 PM
Post #7


New D.I.C Head

Group Icon
Joined: 25 Jul, 2008
Posts: 40



Dream Kudos: 25
My Contributions


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 ...
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/13/08 04:04PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month