SIGN UP MEMBER LOGIN:    
ARTICLE

WPF RichTextBox Content (text+image) save to database

Posted by Nipun Tomar Articles | WPF with C# December 21, 2010
In this article I will provide a tip for how we can save the WPF RichTextBox content (text+image) into database.
Reader Level:
Download Files:
 


In this article I will provide a tip for how we can save the WPF RichTextBox content (text+image) into database.
image1.gif

Create a WPF window and add RichTextBox to it.

Add 3 buttons to the window->

  1. For FileOpenDialog to insert image to the RichTextBox
  2. To save the content to the database
  3. To retrieve content from the database


Create a Table in your database with one column type TEXT

image2.gif

Add the following code to the above added buttons

image3.gif

image4.gif

Login to add your contents and source code to this article
share this article :
post comment
 
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor