Category: C#

Articles on C# programming language.

Remoting Genric Interface Client Application Design

Generic Remote Interface Explained

In the previous articles, we saw Single-Call Remote Object and Singleton Remote Object. In this article, we will explore the usage of Generic Interface in the Remote Objects. First, we will explore how the server will register it and then move on to the client which consumes it. Generic Interface is a C# concept. But here we will explore that in Dotnet remoting context.

Form Navigation of This Example

C# Modal & Modeless Dialog Explained

In C#, Windows Form is a User Interface (UI) that picks up input from the application users. An application can show these forms as either Modal Dialog or Modeless Dialog. Note, a Form can call some other Form and it can go deep nesting. In case of a Modal C# Dialog, the caller gets blocked till the user closes the Modal Dialog. Conversely, the Modeless C# Dialog does not block the caller. We explore these with an example.

Implementing More Than One Interface

C# Interface Explained With Examples

An interface is a contract, and it is set by declaring a set of functions in it. A class can implement these interfaces. This means, we assure that a class signing the interface give an implementation for the contract functions. In this example, we will study about C# Interfaces with Examples. It covers defining & implementing, extending, implement more than one & casting between them.

C# Panel Container Control Example

C# Panel Container Control Explained

The Panel Container Control is all about this article. We will see how to use the panel control for grouping the controls. Then we will explore the important properties of this container along with an example.

Panel Container is almost like a group box. Unlike the group box, the panel does not have a title on the top. But it has the support to provide the scroll bars. These scroll bars allow us to place plenty of controls in it and make us to scroll when the form is not enough to fit all the controls.

Dotnet Debug Tracing Components

C# Tracing & Event Logger Explained

In this article, we will learn how to push C# debugging information into the Trace File and Windows Event Logger. This is useful when the application is deployed in the customer place. Debugging an application in customer place is almost not possible as we do not keep the source code in the deployed environment.
The screen-shot below shows our Example and you can download it from the link at the bottom of this article. Here, we will not explore how the application performs prime number summation. But, will learn how to perform tracing using the C# Application Programming Interface.

The BreakPoint Window

Breakpoints & CSharp Application Debugging

Debugging is the process of finding the logical errors in the program by checking the source code during the execution. The execution of a program pauses when the break-point is hit. Here, I will walk you through the debugging using the sample EXE found with this article. We will start breaking the execution with Breakpoints, then we will see step-in and step-out options. Finally, we see how to add a conditional breakpoints.