C# STAThread Attribute In this post we will discuss the the purpose of STAThread attribute in Main() method of the C# program.[STAThread]static void Main() You must have noticed the above-given entry point Main() method in the program.cs class of all .NET windows forms applications are always decorated with the attribute STAThread. What is [STAThread] Attribute? […]
Difference Between nHibernate and Entity Framework 4.0
nHibernate and ADO.Net Entity Framework are ORM frameworks (object relational mapping frameworks).This post lists the major difference between nHibernate and Entity Framework 4.0. Entity framework is the Microsoft’s first ORM framework. Microsoft introduced ADO.NET Entity framework in .net framework 3.5 Service Pack 1. In an object oriented language, object-relational mapping framework is used to map […]
How to add text in a created table in a richtextbox?
In my previous article How to create Table InRichTextBox using C#, I explained in detail how can we insert a table in richtextbox. After that, I was seeing questions from developers that How to add text in a created table in a RichTextBox? This motivated me to write this post in which I will try […]
Table in RichTextBox With Text Wrap In Columns(Cells)
The RichTextBox control permits us to display and edit content such as paragraphs, images, and tables.In one of my earlier posts, How To Make Table in RichTextBox Using C# I have shown samples for creating table in rich text box control. However, there are still some limitations with entering long string values,paragraphs, and images in […]
Display rtf file correctly In RichTextBox – C#
If you try to load an RTF file having a table with long text and display it in a normal RichTextBox control, you will get disappointed for sure. Because the basic out of the box RichTextBox doesn’t support word wrapping by default.For example, you have an RTF file “rtfTest.rtf“ with a content table like this […]
How To Create Table in RichTextbox Using C#
This article is to guide C# and VB.NET developers in creating a table in RichTextBox using C# and in a similar manner in VB.NET. Being a .NET programmer, you may have to edit formatted text, images, tables and any other such rich content. With simple textbox control, it is not possible. Here comes the use of […]