C# Corner

Resources  
  • Printing in C#Jan 26, 2000. An application show you all Printing, Print Preview functionality using C#.
  • Adding Menu Support to a Windows FormDec 18, 2000. This sample code shows you how to use the MainMenu and MenuItem classes to add a menu and click handler for a Windows Form.
  • GDI+ Tutorial for BeginnersDec 26, 2000. GDI+ is next evolution of GDI. In Visual Studio .NET, Microsoft has taken care of most of the GDI problems and have made it easy to use.
  • Creating your own cool Volume Control using GDI+Jan 23, 2001. In this article, I'll give you an example of creating your own control.
  • Handling Mouse Events in C#Jan 25, 2001. This article explains how to handle mouse events in C# or VB. In C#, you write a delegate and then write an event handler.
  • Tutorial: Working with Toolbars in C#Jan 30, 2001. This tutorial explains you how to add toolbars to a form, load images to the toolbar buttons, and writing event handlers for toolbar buttons.
  • PaintBrush in C# - IIJan 30, 2001. This is a PaintBrush Application. In this Paintbrush user can draw some images and he can save the images in a persistence storage and later time can retrive the images.
  • Schedule Program Using C#Feb 22, 2001. The Scheduling program consists of three main classes. The Form, the DatabaseController used to read and write scheduled events into the database and RowData which corresponds to data extracted from a row in the database.
  • Drag and Drop RevisitedMar 13, 2001. I've had a couple inquiries on how to do drag and drop in .NET again, so I've put together a simple app for dragging text from a TreeView to a TreeView and a TreeView to a ListBox.
  • Developing Web Applications in VS.NET Mar 29, 2001. This tutorial describes about Step-by-step tutorial guides you towards developing your first web application.
  • Reminder ProgramJun 08, 2001. The program allows you to set a running timer to remind you of an upcoming event.
  • Creating a screen saverJun 21, 2001. Creating a screen saver is an interesting topic. A screen saver is a maximized form that contains no borders and caption.
  • Developing Windows Applications Jul 23, 2001. This tutorial explains you step by step how to create your Windows Applications using Visual C#.
  • Events and DelegatesJul 26, 2001. Events in C# are based on delegates, the Originator defining one or more callback functions as delegates and the listening object then implements then.
  • Eater Game in C#Jul 31, 2001. This is a simple game written in C# in which the user moves a packman like player around the form and gobbles up red dots. The object is to get all the dots in as quick a time as you can.
  • Printing out your W2 Form using C# and .NETAug 07, 2001. This article covers a fairly practical aspect of using a computer - dealing with forms.
  • Timer Control Aug 22, 2001. The sample project attached with this article shows how to use the Timer control available in .NET and C#.
  • Simple Windows Forms Events and InterfacesSep 03, 2001. This article contains a c# code which makes use of the concepts of Events and Interfaces together.
  • Mouse and Key EventsSep 11, 2001. This article explains the usage of key and mouse events. The following code shows you how you can read mouse position on mouse move.
  • Visual Inheritance in C#-Part1Sep 24, 2001. We all know that Inheritance means a extending a class with more Features without worrying about the implementation of features of hidden inside the class to be inherited.
  • WinChat For .NETOct 10, 2001. WinChat For .NET is a simple peer-to-peer chatting program that functions very similarly to the WinChat program provided by Windows 2000. It provides all the functionalities that the original WinChat program provides.
  • Calculator in C# (Windows Application)Oct 19, 2001. This is a simple calculator program that was written using Visual Studio.NET and C#.
  • Printing a Ruler using C# and GDI+Nov 12, 2001. If you misplaced your ruler, here's an application that will create one for you on your printer!
  • Adding Controls to Windows Forms at RuntimeNov 13, 2001. In this example I'll show how one can create and add controls to their Windows Forms at runtime.
  • Monitoring File System using FileSystemWatcher Class - Part 2Nov 26, 2001. In Part 1, we have seen how to use FileSystemWatcher class. Today I' m giving an example to monitor your file system.
  • Monitoring File System using FileSystemWatcher Class - Part 1Nov 27, 2001. In this article, I am explaining you how to use FileSystemWatcher class. In part 2, a sample application, which helps you to monitor a specified directory.
  • Event Handling in C#Dec 10, 2001. This article shows you how to write control, mouse, and keyboard event handlers in C#.
  • Observer and .NET event delegatesDec 17, 2001. The purpose of this article is to try to introduce observer pattern and compare it to .NET event delegate handling of notifications.
  • Space Invaders in C# and .NETDec 23, 2001. Yes, the classic arcade game has returned and is appearing in C# Corner complete with sound and authentic aliens and source code. It's not quite as good as the real game, but with a few adjustments it can get there.
  • Graphics Programming in C#Dec 26, 2001. The new improved version of GDI is called GDI+. The .NET framework provides a rich set of classes, methods and events for developing applications with graphical capabilities.
  • An Animation Component using C#Feb 08, 2002. Sometimes its desirable to get those graphics moving a bit and this article show the control to implement it.
  • Event Handling in .NET using C#Mar 13, 2002. In this article I discuss the event handling model in .NET using C#. The discussion starts with an introduction to the concept of delegates and then it extends that concept to events and event handling in .NET.
  • SQL Server Database ExplorerMar 20, 2002. This application connects to a running SQL Server 2000 and displays all the available databases in it.
  • Peer-to-peer Chat Program using Asynchronous SocketMar 22, 2002. This is a simple chat program, which uses asynchronous socket to provide connection between two machines.
  • Multithreading Part 3: Thread SynchronizationApr 11, 2002. The .NET framework provides a number of classes and data types that you can use to control the access to shared resources. Thread synchronization refers to the act of shielding against multithreading issues such as data- races, deadlocks and starvation.
  • Tracking Time in a Window ApplicationApr 15, 2002. The program reads from an XML file to get the data about names and birth dates, so it is easy to add or remove names without changing the code in case my son decides the program should include his pet dog or turtle.
  • Ripple.NET: A Windows Forms DemoApr 25, 2002. Finally, in the OnPaint Event Handler I clear the Form and step through the rippleLIst drawing each of the RippleObjs in it that has a location Point that's not Empty.
  • Nemesis-7rc1 ( Codename Deviate)Jun 13, 2002. Nemesis-7 is a full-screen 2D shoot’em up that makes use of the DirectInput, DirectSound and DirectDraw interfaces from DirectX. The player controls a spaceship which he uses to duel the computer opponent. I implemented some artificial intelligence to make the CPU play more human.
  • Editable GridView Control in C# and .NET - Part-III Printing the GridViewJun 24, 2002. In our last two articles, we talked about how to create an editable GridView and how to make it persistent in XML.
  • Key Logger Application in C#Jun 30, 2002. 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.
  • Intellisense: An Example of How to Make ItJul 01, 2002. Auto completing is one way to offer a productive and programmer friendly user interface to programmers and Intellisense feature of Visual Studio .NET is one of them.
  • Imlememnting Drag and Drop in ListView ControlsJul 08, 2002. Drag and Drop operations in Windows can be achieved using 3 simple events - DragEnter, DragLeave, and DragDrop.
  • Writing a Single Event Handler for Multiple ControlsJul 22, 2002. Writing a Single Event Handler for Multiple Controls by Giuseppe Russo. Jul 22, 2002. I have noticed that in many articles, I read, people use a longer method of clearing many textboxes, as well as handling more than one control at the same time.
  • Master-Detail Display Using Nested Repeater Web Forms ControlAug 05, 2002. In this example, we will create a web page that displays a formatted view of data with a master detail hierarchy using nested Repeater controls. We will use the Northwind sample for our example. There are many different ways to accomplish this task.
  • Using Installer Classes to Ease Deployment in VS.NETAug 07, 2002. In this article I will demonstrate how to incorporate installer classes with your Visual Studio .NET msi's to handle any supporting tasks that your assemblies may need.
  • DataGrid Customization Part-IV:Exchanging a DataGrid Columns using Drag and DropAug 21, 2002. This article covers customized sorting and a DataGrid column hiding programmatically.
  • User Management Utility for Web Form AuthenticationSep 06, 2002. This article deals with the management of user login and password information for a Forms Authentication in ASP.NET.
  • SMTP and POP3 Mail ServerSep 13, 2002. This is simple implementation of SMTP and POP3 server. Two new features are added to the original code.
  • Customize User Interfaces and Pass User Input to Installer ClassesOct 29, 2002. In this article I am going to demonstrate how to customize your MSI install to prompt the user for some information and then pass this information to an installer class. This can be useful when needing to do something during an install based on the user input.
  • The NeFs Application Demo Part 2: Designing Application Oriented Server ControlsOct 31, 2002. This article is part II of a three part demo application dubbed Net-Worked Financial System written in C# and .NET framework.
  • Drag and Drop using C#Nov 13, 2002. To allow your program to accept files using the drag and drop, you must first pick a control that you wish to be able to accept them.
  • DigitizeAny - A .NET Windows Digitization ToolDec 17, 2002. DigitizeAny uses Win32 API calls to obtain the coordinates of the cursor and then translates to the graph coordinates once set. Since a mouse click would essentially bring to focus the window where it is pointed to, this tool uses the key event to capture the coordinates of the cursor.
  • Event Logging in .NET: Using Remoting to Implement Distributing LoggingDec 20, 2002. In this article we will view the event logging API that comes with .NET.
  • Using Remoting to Implement Distrubuted LoggingDec 20, 2002. In an earlier article we had discussed how new tracing and debugging techniques in .NET make debugging easier. In this article we will view the event logging API that comes with .NET.
  • Events in C# Advanced - Lesson2Jan 02, 2003. In the previous lesson we created an event and consumed it. In doing so you probably noticed that our code would have been a little better if we could have determined whether or not the file actually existed.
  • Events in C# Made Easy - Lesson1Jan 02, 2003. Events are useful for updating a user interface with changed data, or causing a piece of code to run after another piece of code has completed. .NET has brought us a powerful model for programming events.
  • Recording Sheet Music Using C# and .NETFeb 07, 2003. This is a article that allow you to record and replay the music you performed on the piano.
  • Math Equation Editor in C#Apr 07, 2003. The Equation Editor I created in C# allows you to create a few simple equations using the keyboard. With the editor you can open and save files of your equations.
  • Implementing Custom Paging in ASP.NET DataGrid ControlJun 01, 2003. This article shows you how to implement custom paging in ASP.NET DataGrid control.
  • DataGrid and Client Side EventsJun 17, 2003. This article shows you how to use DataGrid client side events including mouse over, on click and so on.
  • ColorFul Web DropDown List in ASP.NETJul 23, 2003. In this example we will build an ASP.NET User Control which provides a listing of colors with the list items displayed in the actual color that the list item represents.
  • EggTimer in C#Aug 26, 2003. This simple timer app will count down from whatever value is set in the textbox.
  • POP3 LibraryAug 29, 2003. This application is written in C# and is multithreaded, the allows the client application to invoke the POP3 library and get the messages, the status and the results of the POP3 events are passed back to the client application using the C# delegates.
  • Creating Word Find Puzzles for the Web in C# and GDI+ Part IIOct 06, 2003. In our last article we showed you how to create Word Find Puzzles inside of a Windows Form. This article will show you the migration process of bringing it over to an ASP.NET application.
  • Creating Word Find Puzzles for the Web in C# and GDI+ Part IIOct 06, 2003. This article shows you how to create Word Find Puzzle application for the Web using C#, GDI+, and ASP.NET.
  • .NET Remoting - Events, Events? Events!Nov 04, 2003. You want the server to fire an event and all of the clients or only some specific must receive it. This article describes several approaches to the problem using .NET Remoting events model.
  • Events Programming in C# Nov 24, 2003. In this article, author discusses the events model in .NET and how to implement events in your applications using C#.
  • Office11 Solution using .NET - A White PaperNov 25, 2003. This detailed white paper contains the information about Office 11 support for Microsoft .NET. It also explains Office 11 object model and how to access Word and Excel documents using Visual Studio .NET.
  • A Simple Virtual Voltmeter Using GDI+ and the GP-3 BoardDec 07, 2003. This is a less complex, nevertheless interesting example of how to use the same board to create a simple voltmeter.
  • Working with Windows TabControl with C#Dec 16, 2003. Windows TabControl is a useful control that allows you display multiple dialogs tabs on a single form by switching between the tabs. In this tutorial, I will explain how to create and use a TabControl in your Windows applications with C#.
  • Using ApplicationContext to Encapsulate Splash Screen FunctionalityJan 05, 2004. The enclosed article also gives a detail explanation of what happens behind the scenes when a WinForm application is started.
  • DataTable Events in C#Feb 17, 2004. The ADO.NET DataSet is a data construct that can contain several relational rowsets, the relations that link those rowsets, and the metadata for each rowset. The DataSet also tracks which fields have changed, their new values and their original values, and can store custom information in its Extended Properties collection. The DataSet can be exported to XML or created from an XML document, thus enabling increased interoperability between applications.
  • Monitoring Remote Log Remotely using WMI in C# and .NETMar 31, 2004. WMI (Windows Management Instrumentation) is a component of the Microsoft operating system that allows you to monitor virtually every piece of the system (either locally or remotely) as well as control the windows operating system.
  • Text Transformation using GDI+ and C#Apr 27, 2004. This article shows you how to use GDI+ classes defined in the .NET Framework class library to apply transformations on text.
  • Dynamic Database Creation - 2May 06, 2004. This article explains how we can display data using Dataset and DataGrid control after the database is created.
  • Using the Tablet PC as a Flashing Restaurant Menu in C# and .NETJun 08, 2004. This is a simple application written for a restaurant using Tablet PC that allows you to list such things as lunch specials and have the colors on the board change randomly to produce an interesting flashing sign effect.
  • Microsoft Enterprise Instrumentation Framework(EIF) - Quick GuideJul 02, 2004. The Microsoft EIF is a bunch of assemblies for .Net that make your life easy when it comes to instrumenting your program, by this I mean tracing facilities, writing to the event log, and many other things.
  • Microsoft Enterprise Instrumentation Framework(EIF) - Quick GuideJul 02, 2004. The Microsoft EIF is a bunch of assemblies for .Net that make your life easy when it comes to instrumenting your program, by this I mean tracing facilities, writing to the event log, and many other things.
  • Short Cuts for Toolbar ButtonsJul 26, 2004. This tutorial tells the story about "How to create short cuts for toolbar buttons?".
  • Microsoft CRM Customization: MS Exchange Transport SMTP Event SinkOct 18, 2004. Microsoft CRM has variety of customizations options and tools. The official and the most popular is Microsoft CRM SDK: collection of C#.Net and partially VB.Net classes, methods and code samples.
  • How to Populate a DropDownList insides a DataGrid through an XML FileNov 16, 2004. In this article, we will show how to fill a DropDownList inside a DataGrid through an XML file. We will also show how the contents of one DropDownList changes dynamically as we change the index of second DropDownList (both inside the grid).
  • ClickMania GameDec 21, 2004. This is an old game, first implemented in 1996 or so... It has a great addictive power. You will quickly find out the rules. I used the winmm.dll library for playing sounds, the picturebox.Paint event to draw bitmaps in a Picturebox and a recursive function to check the balls next to each other for the colors.
  • ASP.NET Page Life CycleMar 04, 2005. In this article, we will see the stages of execution of the ASP.NET Page.
  • Creating simple Add-in for Visual Studio.NETMar 16, 2005. An add-in is a tool that you create programmatically by using objects, methods, properties, collections in .NET's extensibility model. This compiled application enables you to automate the difficult and tedious tasks within the visual studio integrated development environment (IDE).
  • Count Image Requests from a Web Server using ASP.NET (VB.Net)Mar 19, 2005. This article explains you how we can count Image request from a Web server using VB.Net and ASP.NET.
  • Count Image Requests from a Web Server using ASP.NET Mar 19, 2005. This article explains you how we can count Image request from a Web server using C# and ASP.NET.
  • Space Invaders for C# and .NETJun 29, 2005. This is an update of the space invaders game posted on C# Corner 3 years ago for Visual Studio 2005. This version adds spiraling bombs and a ship lives indicator.
  • Windows Forms Base ArchitectureJul 14, 2005. This base architecture is well suited for windows based development. This ease the development time required as well as it is developer friendly.
  • Multi Selection of DataGrid Rows without Ctrl ClickJul 31, 2005. This article shows how to select multiple rows in a DataGrid without using CRTL.
  • Masked Currency TextBox for Visual Studio 2005 BetaAug 14, 2005. There are some problems with the behavior of the current beta version of the MaskedTextBox when you are using currency. This article will show you how to overcome this behavior with an overriding control.
  • Delegates and Events in C#Oct 05, 2005. A delegate in C# is similar to a function pointer in C or C++. Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object.
  • How do I Implement Custom Event Handling in C#Oct 27, 2005. In this article, we are going to show, how we can call custom event on our designed conditions.
  • ColorReliefButtonDec 14, 2005. My idea was to create a button that can be used as a colourful decoration for any application. The look of the ColorReliefButton can be determined by changing property values. The main attraction should be a cool look (Relief) of the controls text. Like this almost any font (TrueTyp) can be used to decorate a button and there is no need to use bitmaps.
  • Learning Delegates in C#, an IntroductionJan 03, 2006. There is this thing in C# called a delegate, which is going to be crucial to build interactions between our objects. What’s a delegate, you ask? Good question. A delegate is a pointer to a method. What’s that mean? Just like you can pass variable by reference, you can pass a reference to a method. Let me give you an example.
  • Introduction to new SECS/GEM driver using SecsToTool.NetJan 06, 2006. SecsToTool.Net is a connectivity solution for the semiconductor equipment that support SECS/GEM communication interface. The SecsToTool.Net SECS/GEM driver SDK is designed to provide a high level method call/reply and event driven environment for your host application (or what we normally called Cell Controller/Station Controller/Equipment Manager) to communicate with equipment.
  • ASP.Net 2.0 What's new in Page Life CycleJan 07, 2006. ASP.NET 2.0 adds some new events to allow you to follow the request processing more closely and precisely. This article looks into those events.
  • Understanding C# Events: What They Are and Where They Came FromJan 30, 2006. To help you get a working knowledge of C# events and event handling, this article explains where events come from, what they really are at a functional level and how they are expressed in C#. This article specifically looks at the Gang Of Four (GOF) Observer pattern.
  • Multi Threaded File Reader and GeneratorMar 07, 2006. The attached source code with this article is a multithreaded application written using .NET 2.0 that shows how to use the background worker threads to read a text file, generate reports and show report progress and completed events.
  • Comparison chart between ASP 1.x and ASP 2.0Mar 07, 2006. This article explores a comparison chart between ASP.NET 1.x and ASP.NET 2.0.
  • C# Defensive Event Publishing Using InterfacesApr 03, 2006. This article explains how to use interfaces for C# Defensive Event Publishing.

About Events

NA

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.
Download Free eBooks