Playing Sound Via C# SoundPlayer & AxWindowsMediaPlayer

Windows Media Player Active-X Control

In this example, we will see how we can play sound files in C#. We can play Sound in two specific ways. One way of playing is using the SoundPlayer class from ‘System.Media’ Namespace and the other way is using the ‘Windows Media Player Active-X Control’ called AxWindowsMediaPlayer. In this article, we will try both the ways by playing a ‘.wav file’. You can test yourself for more functionality on the specific area

C# RichTextBox Explained with Examples

C# RichTextBox Control Example

C# RichTextBox control is like a text box control. But it supports rich text contents. In this example, we will use this control and learn how to read and write rich text content. The example shows how one can apply rich text attributes like bold, italic and fonts to the containing text. The last part of the example walks you through clipboard operation and using the Undo and Redo featured of this control.

Remoting Config File for Server & Client

A Sample Dot Net Remoting Configuration File (Client & Server)

In this example, we will see how to configure and use configuration files for dot-net remoting. Here, we create config file for both server and client. These config file replaces the configuration done through code. This example uses the Singleton Remote server example and then replaces some code with configuration file.

System Tray Balloon Tooltip Using C# NotifyIcon Control

SystemTray Using NotifyIcon Control Example

In this example, we study how to use C# NotifyIcon Control. Here, we also create a context menu and balloon tooltip to support the sample. The example places a tray icon when the user closes the application. When the user right clicks the Icon, it displays a context menu and through which the user can interact with this example. It runs a timer and when time crosses specific interval; the example notifies the user via a balloon tooltip. 

C# StatusStrip Control Explained

C# StatusStrip Example

‘StatusStrip’ is a group of strip controls like MenuStrip and ToolbarStrips. Application Developers uses the StatusStrips to display some quick status data to the user. C# StatusStrip Control allows us to add even combo and text boxes to the status. In this example, we will learn how to add a Status Bar to a C# Application with three status slots in it. Then we will look at some important properties and use that efficiently.

C# ToolStrip with Toolbar Buttons & Icons

Toolstrip C# Example

In this Example, we will create Toolbar and Toolbar buttons using the C# ToolStrip Control. After adding the Toolbar buttons to the ToolStrip Control, we study various properties of it. First, we learn how to right justify some toolbar buttons. Then we will learn how to show toolbars buttons with Image and Icon. Finally, we learn how to manage the visibility of the toolbar buttons when it overflows.

C# TableLayoutPanel Example

C# TableLayoutPanel Example

Do you know how the Table works in html? The “TableLayoutPanel” works almost the same way how the table works in html. In this example, we will see how the C# TableLayoutPanel can be used & how each cell of this panel behaves. Also, we will nest some other layout panel with this one. At the end we will see a small professional looking form that can be used by any hospital management application. OK. The C# TableLayoutPanel is collection cells and these cells can be arranged in rows and columns. We can imagine each cell as a special container. Why we say that it is a special container? Because each cell can hold only one control in it. What if we need to have multiple controls in one cell? Actually, that is not required most of the time for this container. But if we still need an answer, place a container you like in that cell and start placing the controls inside the container which occupying the cell. Say, for example, we can place a Panel in a cell and add multiple controls to that Panel.