Category Archives: WinForm

How to show NotifyIcon in Windows Forms application using C#

In this article I will explain how to show NotifyIcon in Windows Forms application using C# Introduction In this article I will explain how to show notification in Windows Forms application using NotifyIcon component of Windows Forms NotifyIcon NotifyIcon is a component in Windows Forms that is used to notify users by displaying an icon… Read More »

How to customize default ContextMenu of a TextBox control in Windows Forms application using C#

In this article I will explain how to customize default ContextMenu of a TextBox control in Windows Forms application using C# Introduction In previous article I explained How to create Context Menu in Windows Forms application using C#. In this article I will explain how to customize default ContextMenu of a TextBox control and add… Read More »

How to create Context Menu in Windows Forms application using C#

In this article let us see how to create Context Menu in Windows Forms application using C# Introduction In this article we will see how to create Context Menu or Popup Menu or Shortcut menu in Windows Forms application with ContextMenuStrip control using C# Context Menu Context menu is group of commands or menu items… Read More »

Drag and Drop from DataGridView to ListBox in a Windows Forms application

In this article I will explain how to drag and drop from a DataGridView control to a Listbox control Download source code Introduction In this article I will explain how to drag selected rows from a DataGridView control onto a ListBox control in a Windows Forms (WinForms) application using C#   Step 1: Create a… Read More »

Send Email with attachments from C# Windows application using Gmail SMTP

In this article I will explain how to send email from C# Windows application with attachment using Gmail SMTP Introduction In this article we will see how to send email from C# Windows application (WinForms) with attachment using Gmail SMTP. For this first we will design interface for sending email and then we will set… Read More »

Connecting C# application with MySQL database

In this article I will explain how to connect C# application with MySQL database Introduction In this article we will see how to display data in a Windows Forms application from a MySQL database table Step 1: Install MySQL database driver (MySQL Connector/NET) for .NET. Download it from this link http://dev.mysql.com/downloads/connector/net. Step 2: Create a… Read More »

Autosuggest TextBox from database column in Windows Forms

In this article we will see how to create an autosuggest TextBox that will suggest data from a SQL Server database column Introduction In this article we will create a TextBox that will suggest names from a SQL Server database column FirstName. Typing first few characters will show matching names from the FirstName column as… Read More »

How to create an installer for a WinForm application using Setup Project

In this article I will explain the process of creating an installer for a Windows Form application using Setup Project Introduction In this article we will create a Setup Project to build an installer of a Windows Application. We will create setup for Windows Application created in my last article. Step 1: Create a Setup… Read More »

How to show progress of fetching database records using a ProgressBar control in WinForm

In this article we will learn how to show progress of fetching database records using a ProgressBar control in WinForm Introduction: In this article we will use ProgressBar control to show progress of fetching database records in a WinForm. In my last article I used a BackgroundWorker control to fetch database records. I will be… Read More »

How to show asynchronous processing of database records on a WinForm UI using Multithreading

In this article you will learn to show current row on a WinForm User Interface that is being accessed from a SQL Server database Introduction: We have an Employee table of 50000 records in a SQL Server database. We want to load all employees in a ComboBox on a WinForm. By default Windows Form works… Read More »