Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > VB.NET > Windows Forms

Windows Forms Discussion related to Winforms application development

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-07-2008, 9:58 AM
JaedenRuiner's Avatar
VB.NET Forum Master
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2007
Age: 31
Posts: 340
Reputation: 81
JaedenRuiner probably authored a book by nowJaedenRuiner probably authored a book by nowJaedenRuiner probably authored a book by now
Default HTML Display Component...

Is there a Base Component that merely displays HTML in formatted mode. Basically a WebBrowser component but without the "Web Browsing", if you catch my drift.

I'm working on a display feature for the formatted emails that are being transmitted by my application, and they are HTML formatted. I could use a WebBrowser component, but it has so much overhead for browsing and all I need is the HTML display capabilities.
<edit>:
Additionally, I'd preferably like one that can be Databound. Basically, the body of my emails are stored in database table field. It'd be nice to have a HTML Viewer that I can directly associate with that field (column) and thus I could scroll through the list of emails and the same as a DGV or bound textbox, the data would just show up visual as parsed HTML.

Thanks
__________________
Jaeden "Sifo Dyas" al'Raec Ruiner
http://www.wayoftheleaf.net/

Last edited by JaedenRuiner; 10-07-2008 at 10:10 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-07-2008, 10:51 AM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,325
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

Would using WebBrowser control with AllowNavigation property set to False be something?
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-07-2008, 12:00 PM
JaedenRuiner's Avatar
VB.NET Forum Master
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2007
Age: 31
Posts: 340
Reputation: 81
JaedenRuiner probably authored a book by nowJaedenRuiner probably authored a book by nowJaedenRuiner probably authored a book by now
Default

It looks that way. I was hoping to avoid some of the overhead the control uses. But in the end, i found i could DataBind the "DocumentText" property and i disable all the "browsing" features which seems to work well enough so far. it just is a rather in-depth component for such a simplistic use. *shrug*

Thanks
__________________
Jaeden "Sifo Dyas" al'Raec Ruiner
http://www.wayoftheleaf.net/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-08-2008, 11:26 AM
JaedenRuiner's Avatar
VB.NET Forum Master
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2007
Age: 31
Posts: 340
Reputation: 81
JaedenRuiner probably authored a book by nowJaedenRuiner probably authored a book by nowJaedenRuiner probably authored a book by now
Default

Well, that didn't seem to work either.

Basically, my Database has the "Body" of the email in HTML format. I want the WebBrowser (or comparable component) to have it's source input bound to the Body Element of my dataTable. I tried:
Code:
Me.BodyBrowser.DataBindings.Add(New System.Windows.Forms.Binding("DocumentText", Me.bind_MailBox, "Body", True))
But that seemed to overwrite the data that was in my DataTable as opposed to setting the value in the Browsers.DocumentText property. Instead of "Reading" the data, it tried to "write" the data. Any Ideas?
(I really don't want to have to listen to each time the user changes records and manually set the Browser.)
<edit>
I did just that though. When My Primary Binding Source Changes Position, I have to profligate through all the other binding sources and such so everything is on the same page. Instead of using the DataBindings as above, I put in the line:
Code:
BodyBrowser.DocumentText = bind_MailBox(bind_MailBox.Position)("Body")
And it works just fine. Any Ideas as to why that works and the DataBindings() method does not?

thanks
__________________
Jaeden "Sifo Dyas" al'Raec Ruiner
http://www.wayoftheleaf.net/

Last edited by JaedenRuiner; 10-08-2008 at 12:25 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 11:22 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.