Windows Forms
Welcome to Windows Forms section of C# Corner. In this section, you will find various Windows Forms related source code samples, articles, tutorials, and tips.

Articles

  • Tutorial: Working with Windows Forms

    Tutorial contains a number of C# samples for the Amateur/ Beginners in the Visual C# and .Net PlatForm Environment.
  • WebBrowser Control in C# and Windows Forms

    WebBrowser control allows developers to build Web browsing capability within Windows Forms applications. In this article, I will demonstrate how to use the WebBrowser control in a Windows Forms application using C# and Visual Studio 2010.
  • Playing AVI Files using DirectX 9 with C# and .NET

    Ever wonder how to play videos in .NET? This article will show you how to use the managed DirectX 9 Video class to play avi video files.
  • CodeDom Calculator - Evaluating C# Math Expressions Dynamically

    This article describes how to use CodeDom and Reflection to Create a Calculator that can evaluate simple and complex math expressions on the fly.
  • Browse or Open a File

    This sample code show you how to use OpenFileDialog class to open or browse a file.
  • Key Logger Application in C#

    In this article, I'll explain an easy but an important concept of how to catch user pressed keys and write them into a log file.
  • Using Error Provider Control in Windows Forms and C#

    In this example we will see how to use the ErrorProvider control in Windows forms to provide validations in Windows Forms and display user-friendly error messages to the user if the validation fails.
  • Calculator in C# (Windows Application)

    This is a simple calculator program that was written using Visual Studio.NET and C#.
  • AutoComplete TextBox in C#

    Auto completion is a new feature added to Windows Forms 2.0 controls. In this article, I will show how to use the auto completion feature in your applications.
  • Drag and Drop Using C#

    Drag and Drop in C# has been a question on the UseNet and many websites on C# so I have decided to tackle the problem here. This is an update of the directory tree component download on this web site.
  • How To Open and Read an Excel Spreadsheet into a ListView in .NET

    The Interoperability services make it very easy to work with COM Capable Applications such as Word and Excel.
  • TreeView Control in C#

    This is an article addressing some of the basics of working with a TreeView in C#; the article will address dynamically adding TreeNodes to a TreeView control, searching the nodes to find and highlight a single node or a collection of nodes.
  • How to Open a Second Form Using First Form in Windows Forms

    Here I will explain how to open a second from using a first form in Windows Forms.
  • Adding a Control to a form Programmatically

    In this article I explain how to Add a control to a form programmatically.
  • Capturing File Information

    This article describes a simple approach to capturing and displaying file and file version information.
  • Simple Game in Windows Forms

    This article shows you a small game by using simple text box ,buttons and dropdown list.
  • IM Chat Interface for C# and .NET

    This article describes a way to create a colorful chat interface for instant messaging. In this chat interface you can use html and emoticon tags to display colorful text and bitmaps in order to give you a richer chat experience.
  • Communication Between Two Forms

    The aim of the program is to send a message between different forms.
  • Opening and Viewing Text and Image Files

    We will start this article with a simple application where we will learn how to open and view text and image files using the OpenFileDialog class. In doing so, we will learn some basics of GDI+ drawing, menus and panel control.
  • Upload/Display Image In Picture Box Using C#

    In this article, we learn how to browse, view and display an image path in a picture box tool using C# Windows Forms application. OpenFileDialog, PictureBox.
  • View More