Visual Basic .NET Forums    

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

VB.NET Forums Newsletter Signup:
Email address:


Windows Forms Discussion related to Winforms application development

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-07-2008, 10:58 AM
JaedenRuiner's Avatar
VB.NET Forum Master
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2007
Age: 30
Posts: 286
Reputation: 64
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 11:10 AM.
Reply With Quote
  #2 (permalink)  
Old 10-07-2008, 11:51 AM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 36
Posts: 7,816
Reputation: 813
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?
__________________
See this thread about how to use forum markup codes for code blocks etc (present the problem/post properly )
Some useful links: Learning videoes, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ


DR. WEIR: Download it to a non-networked, firewalled computer.
TECHNICIAN: Yes, ma'am.
Reply With Quote
  #3 (permalink)  
Old 10-07-2008, 1:00 PM
JaedenRuiner's Avatar
VB.NET Forum Master
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2007
Age: 30
Posts: 286
Reputation: 64
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/
Reply With Quote
  #4 (permalink)  
Old 10-08-2008, 12:26 PM
JaedenRuiner's Avatar
VB.NET Forum Master
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2007
Age: 30
Posts: 286
Reputation: 64
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 1:25 PM.
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 9:35 PM.




Click to advertise here

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
For advertising opportunities click here.