.NET component for displaying images and HTML text

  • Thread starter Thread starter John Meyer
  • Start date Start date
J

John Meyer

I want to find a component that will let me display a two-column table
with an image in the first table and HTML text in the second. Is there
a customizable component that will let me do that without calling the
webbrowser and having to feed a URL (the text will be generated on the
fly).
 
I want to find a component that will let me display a two-column table
with an image in the first table and HTML text in the second. Is there
a customizable component that will let me do that without calling the
webbrowser and having to feed a URL (the text will be generated on the
fly).

In windows forms... I can't think of one - but, the WPF framecontrol will
display static html...
 
I can't think of one either, but you might still be able to use the
WebBrowser control. The DocumentText property will let you put in your own
HTML code directly. If you don't want your users to be able to navigate away
from any hyperlinks you may have in the code, you can trap the Navigating
event and cancel it. I did something like that to make a text box that could
highlight selected words and let the user pop up windows with definitions
for those words.

You could stick a PictureBox and a WebBrowser side by side into a user
control, or even put them in a SplitContainer, if you want to let the users
adjust the frame size of the cells.


Thanks. I may try that.
 
Back
Top