TechyMedia

A .NET Technology blog | .NET,C# Progamming,C# tutorials,WPF WCF|Software Engineer

NAVIGATION - SEARCH

Display rtf File With Table In RichTextBox Properly

If you try to load and display an rtf file with table with long text in table column in a RichTextBox control of .NET RichTextBox control you will be disappointed to see the output. I believe you are here because you faced this issue.This is a limitation of .NET RichTextBox control.The Solution is to create a custom control out of this RichTextBox control as below and load the file in that control instead. [More]

Table in RichTextBox With Text Wrap In Columns(Cells)

There is limitation in Visual Studio.Net RichTextBox control that you can not enter lengthy text in the columns(cells) of the created table.The available wordwrap property of the RichTextBox is for the control not for the cells of the table.This article explains how you can enter lengthy texts in your table columns with automatic text wrap provision.
There is limitation in Visual Studio.Net RichTextBox control that you can not enter lengthy text in the columns(cells) of the created table.The available wordwrap property of the RichTextBox is for the control not for the cells of the table.This article explains how you can enter lengthy texts in your table columns with automatic text wrap provision. [More]

Exposing List<T> As A Property Of Class In C#

Generic collection type variables need to be Instantiated while exposing else will end up in null reference exception when try to add members to the collection through property accessor.Two different steps are explained in this article.
Generic collection type variables need to be Instantiated while exposing else will end up in null reference exception when try to add members to the collection through property accessor.Two different steps are explained in this article. [More]

Collection Initializers C# 3.0

Collection Initializers enables you to add items in the collection at the time of instantiation of the collection. Collection can be a List or Dictionary or any other available C# collection.
Collection Initializers enables you to add items in the collection at the time of instantiation of the collection. Collection can be a List or Dictionary or any other available C# collection. [More]

C# 3.0 Object Initializers

Object Initializers allows you to initialize the object members without an overloaded constructor or with out setting the properties after object creation.Means the initial value of the class property variables can be set directly during instantiation of the object itself, in C# 3.0 using Object initializers.
Object Initializers allows you to initialize the object members without an overloaded constructor or with out setting the properties after object creation.Means the initial value of the class property variables can be set directly during instantiation of the object itself, in C# 3.0 using Object initializers. [More]

Debugging C# Windows Forms Usercontrols at Design Time

If you are creating a user control it may required to debug the user control during design time to ensure the user control is functioning as expected while in use.This article explains the steps in detail to help you debug your user control in design mode.
If you are creating a user control it may required to debug the user control during design time to ensure the user control is functioning as expected while in use.This article explains the steps in detail to help you debug your user control in design mode. [More]

Create User control for C# winforms applications

User controls are similar to any other class in .NET. But the difference is that user controls are always derived from the UserControl class in System.Windows.Forms namespace.User controls can be created directly inside your project or for re-usability and better maintainability it is suggested to create user controls as separate dll,Windows Forms Control Library.
User controls are similar to any other class in .NET. But the difference is that user controls are always derived from the UserControl class in System.Windows.Forms namespace.User controls can be created directly inside your project or for re-usability and better maintainability it is suggested to create user controls as separate dll,Windows Forms Control Library. [More]

Automatic Properties,C# 3.0

Till C# 2.0 version, Properties are defined by declaring a private member variable first and then declaring the Property.With the introduction of automatic property declaration in C# 3.0 it is possible to define properties without explicit declaration of corresponding private member variables.
Till C# 2.0 version, Properties are defined by declaring a private member variable first and then declaring the Property.With the introduction of automatic property declaration in C# 3.0 it is possible to define properties without explicit declaration of corresponding private member variables. [More]

What Is The Use Of Volatile Keyword In C#

If a field variable need to be modified in the program by something such as the operating system, concurrently executing thread or the hardware then usually volatile keyword need to be used for the field. Volatile modifier ensures that one thread retrieves the most up to date value written by another thread without the use of the Lock statement.
If a field variable need to be modified in the program by something such as the operating system, concurrently executing thread or the hardware then usually volatile keyword need to be used for the field.
Volatile modifier ensures that one thread retrieves the most up to date value written by another thread without the use of the Lock statement. [More]

#pragma, The Inline warning control In C#

#pragma keyword allows you to tell your compiler to display or not to display certain warnings.Means you can enable or disable specified warnings using #pragma keyword. You need to know warning number to enable/disable that specific warning or warnings.
#pragma keyword allows you to tell your compiler to display or not to display certain warnings.Means you can enable or disable specified warnings using #pragma keyword. You need to know warning number to enable/disable that specific warning or warnings. [More]