Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Reply
richtextbox databinding saving and reloading formated rtf
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
don t
9y
936
1
Reply
ok I have a c# windows forms program that I am making in Visual Studio 2013
I had a text box set to databinding text property to a table in my sql database
using a dataset
so my data was auto saved from text box to the database and read back to textbox
now
I needed to change my textbox to a richtextbox so that I could bold, change color etc.. the font.
I do not see how to bind and read back the rtf property using databinding
I tried this
notesRichTextBox.DataBindings.Add(new Binding("Rtf", MyProgramDataSet.RTFTable, "RTF"));
but it only put some rtf data in the colomn and displayed nothing back in the richtextbox when I reopened the form
I tried setting the notesRichTextBox.Text = notesRichTextBox.Rtf and it just showed all of the underlying rtf code/text
Please help
I also tried at the beginning to set the databinding using the VisualStudio interface but Rtf doesn't seem to be an option
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
BOF and EOF Not Supported in C sharp
Calling method from one class to the other in "Static"