View Single Post
  #4 (permalink)  
Old 10-08-2008, 11:26 AM
JaedenRuiner's Avatar
JaedenRuiner JaedenRuiner is offline
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.
Reply With Quote