Tag Archives: Windows Forms

Adding dependencies to a setup project

In this article I will explain how add dependencies or prerequisites to a setup project Introduction A project we create may be dependent on some other software to work properly. We can add dependencies or prerequisites to these software components in our setup project to ensure availability of the required pre installation software. For example… Read More »

How to store user’s preferences in a Windows Forms application

Download Source Code In this post let’s see how to store user’s preferences in a Windows Forms application Introduction In this post we will see how to store user’s preferences in a Windows Forms application that persists even after closing the application. Here, we will give users an option to select font and background color… Read More »

How to play flash in Windows Forms application using C#

Download Source Code Introduction In this article we will see how to play a flash (.swf) file in Windows Forms application Description We have generally two methods for playing a flash animation in a Windows Forms application: Using COM component, Shockwave Flash Object Playing flash inside a WebBrowser control Method 1: Step 1: Create a… Read More »

How to generate random colors in C#

Introduction In an application I required to generate some random colors. Writing these colors manually was not easy. So I decided to use .NET Reflection to generate colors using System.Drawing.Color class Description We can use GetProperties method of Type class to get all the properties of Color class. It returns an array of PropertyInfo class.… Read More »

Text to Speech using C# in Windows Forms Application

In this post I will explain how to convert text to speech using C# in Windows Forms Application Download Source Code Introduction In this post we will see how to convert text to speech (TTS) using a built in Narrator installed in the system. We will use SpeechSynthesizer class of System.Speech library to built a… Read More »

How to get class information using .NET Reflection

In this article I will explain how to get properties, methods and events of class using .NET Reflection Download Introduction In this article we will see how to get class or type information of all the types inside System.Windows.Forms assembly. We will list all the properties, methods, and events of the selected class. We will… Read More »

Connecting to Oracle database from Windows Forms application using C#

Download source code In this article I will explain how to connect to Oracle database from Windows application using C# Introduction In this article I will explain how to connect to Oracle Database 11g Express Edition database from a Windows Forms application using C# and display data from Oracle Database to a DataGridView control. Description… Read More »

Search a folder recursively in a Windows Forms application using C#

Download source code Introduction In this post I will explain how to search a folder recursively for some text and list all the files in the folder and its sub folders containing this text in a Windows Forms application using C# Description Step 1: Create a new Windows Forms application Step 2: Arrange controls on… Read More »

Visual Studio Tips and Tricks: How to set Tab Order of Windows Forms controls in Visual Studio

Introduction In this post I will explain how to set tab orders of Windows Forms controls in Visual Studio Description Tab order of controls is the order in which a control is accessed using Tab key. We can easily set tab order of controls on a form in Visual Studio Add your controls on the… Read More »

How to retrieve images from MySQL database and display as a slide show in Windows Forms application using C# and VB.NET

In this article I will explain how to retrieve images stored in BLOB field of MySQL database and display as a slide show in Windows Forms application using C# Download source code Introduction In previous article I explained how to save images in Windows Forms application using C#. In this article I will explain how… Read More »