Q: how to display HTML

  • Thread starter Thread starter Scott M.
  • Start date Start date
S

Scott M.

An HTML what? An XML what?

Please be more specific. You want to render HTML and XML in a Windows app?
 
Hi Tiraman,

Depends when you want to show it as real HTML a textbox when you want to
show it as page the Axwebbrowser is very good for it.

A little example of the AXwebbroswer

Open a new windows application project
In the toolbox rightclick and select add/Remove items
In the customize toolbox select Com and in that Microsoft Webbrowser

When that is in the toolbox drag it to your form
Drag also a button to your form.

Then this code and you have a mini Webbrowser.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.AxWebBrowser1.Navigate2("www.google.com")
End Sub

Some links to more complete samples

webbrowser
http://support.microsoft.com/?kbid=311303

some faqs
http://support.microsoft.com/default.aspx?scid=kb;EN-US;311284

mshtml is what you need when you start using the docs.
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/hosting/hosting.asp

I hope this helps a little bit?

Cor
 
* "Tiraman said:
what is the best way to display an html in windows application ?

311303 WebOCHostVB.exe Hosts the WebBrowser Control in Visual Basic .NET
and how can i get an xml via http ?

'WebClient.DownloadFile'.
 
hi,

what is the best way to display an html in windows application ?

and how can i get an xml via http ?
 
hello Scott,
i would like to render an html and display it in windows app.

i also wanted to know how can i get an XML over http request. (i have an xml
in some server and i would like to read it to my app)
any way i got a good explanation from Cor Ligthert so 10x for your help.

bye
 
Just so you can be clearer in the future... you don't refer to it as "an"
HTML or "an" XML". The use of the word "an" in your original post was what
was confusing. It's just HTML and/or XML.

Good luck!
 
:-)

Scott M. said:
Just so you can be clearer in the future... you don't refer to it as "an"
HTML or "an" XML". The use of the word "an" in your original post was what
was confusing. It's just HTML and/or XML.

Good luck!
 
Back
Top