TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
don t
NA
3
6k
richtextbox databinding saving and reloading formated rtf
Oct 14 2014 4:52 PM
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
Reply
Answers (
0
)
BOF and EOF Not Supported in C sharp
Calling method from one class to the other in "Static"