Click here to Skip to main content
15,900,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a name.hmt file include Html and css.
I want to display it on my application.
I put name.htm file in Debug folder of application and code below:
C#
webBrowser1.Navigate(@"name.hmt");

But webBrowser1 is not display.
Please help me, thanks!
Posted

1 solution

The WebBrowser Control is pretty advanced and there is no easy way to explain how this works. I suggest you do some reading up on the WebBrowser... There are plenty of resources to be found on Google.
WebBrowser Class[^]
Using the Web Browser Control in your C# Applications[^]
Web Browser in C#[^]
I am sure you can Google up some more.
And perhaps your .hmt file is just wrong. No way of knowing for us.
Hope it helps.
 
Share this answer
 
Comments
williamVu 30-Oct-11 10:29am    
Thanks Naerling, I have read some "WebBrowser Class", "using the Web Browser Control in your C# Applications" and other document.
So it's reall difirent when perform.
I use a way that read file text contain content html tag. and assign for WebBrowser control by DocumetText. it's ok, but have issue don't display my Images.
Sander Rossel 30-Oct-11 10:40am    
Perhaps your images cannot be found by the browser? Or are linked wrongly in your htm file?
williamVu 30-Oct-11 11:39am    
I try to replace some url but not been.
I don't understand when webbrowser control display in app then it get Url how

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900