Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How display html in Frame Control?

6 views
Skip to first unread message

Gagan

unread,
Oct 9, 2006, 11:40:12 AM10/9/06
to
Hi

I am writting following code:

string myString = "<html><body><textarea>Gagandeep
Singh</textarea></body></html>;

//Frame Control
myWebBrowser.Content = myString;

but it is displaying the code as it ,my aim is to display this string
as web page.I want to generate html pages dynamically.

Douglas Stockwell

unread,
Oct 10, 2006, 8:53:25 PM10/10/06
to
I'm not sure if you can do that with a frame. You might have better luck
hosting the Windows.Forms WebBrowser control.

You could also probably use an in-process Asynchronous Pluggable Protocol
Handler to reference your html strings by URL - but that may be a little
more effort.

- Doug

"Gagan" <gagan....@gmail.com> wrote in message
news:1160408412.7...@m73g2000cwd.googlegroups.com...

sba...@gmail.com

unread,
Oct 13, 2006, 1:31:10 PM10/13/06
to
The opensource rss reader FeedFusion uses a WPF Frame to display HTML.
Check out the folder WinFxConsumer in the repository.

Douglas Stockwell

unread,
Oct 13, 2006, 7:24:16 PM10/13/06
to
Ahh, I forgot that one. Write the contents to a temporary file.

<sba...@gmail.com> wrote in message
news:1160760670.2...@i3g2000cwc.googlegroups.com...

Gagan

unread,
Oct 17, 2006, 4:22:08 AM10/17/06
to

Hi,

About which sample are u saying ,if u have any link for this sample plz
send me or send me ths sample code if u can.
Thanks.

Douglas Stockwell

unread,
Oct 17, 2006, 4:30:20 AM10/17/06
to
His sample is here:

http://google.com/codesearch?q=FeedFusion+setBrowserDocumentText

- Doug

"Gagan" <gagan....@gmail.com> wrote in message

news:1161073328.2...@h48g2000cwc.googlegroups.com...

sba...@gmail.com

unread,
Oct 18, 2006, 3:33:25 PM10/18/06
to
The only problem i see is that you did not use a file to store the
html... That should solve the problem, as Douglas already said.
0 new messages