C# Corner

Resources  
  • Shuffle Game for BeginnersJan 05, 2000. This code sample is a GDI+ shuffle game aimed for beginners. Attached zip file includes the exe and the Shuffle.cs file.
  • Asynchronous Request in .NET (C#)Jan 09, 2000. This code sample shows how to call a COM component in .NET framework using C#.
  • Symmetric Encryptor Beta1Jan 11, 2000. Free to use Encrypt/Decrypt using 2 Symmetric Algorithms 'DES' and 'RC2' coded in C#.
  • Use C# to write comments and documentationJan 12, 2000. Comments and Documentation is one of the most hated tasks by programmers. By using C# programmers can can automatically builds the documentation and comments in the code. This documentation is a XML file which is more or less self explanatory.
  • Graphics Animation SampleMay 16, 2000. After finishing a text program (lottery) its time for some fun. Everytime a have to work with a new language.I write a small program to bounce some balls in a box.
  • I'm having trouble implementing IObjectSafety. IE keeps telling me that my controls isn't safe. Why?Aug 15, 2000. This article explains about how to implement the IObjectSafety. ATL's IObjectSafetyImpl class appears to have a few bugs in it. The code below works great.
  • C# EditorsOct 06, 2000. You can write your C# code with various editors including your favorite text editor Notepad. See more editors here.
  • A Simple Calculator ClassNov 28, 2000. Code sample shows how to create a simple calculator class and call it from Main C# program.
  • Write data to an access database using SQL Query and ADO.NETDec 06, 2000. See how to use SQL Statements to write data to an access database.
  • FileStream : Read or Write Data StreamsDec 13, 2000. FileStream class can be used to read/write data to a file with the help of StreamReader and StreamWriter classes.
  • Browse or Open a FileDec 15, 2000. This sample code show you how to use OpenFileDialog class to open or browse a file.
  • 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.
  • Calling a COM Component From C# (Late Binding)Jan 08, 2001. This code sample shows how to call a COM component in .NET framework using C#.
  • Reading and Wtiting XML DocumentsJan 16, 2001. In this article you will see how to read and write XML documents using XML API available in .NET Framework class library.
  • Using ListViews in C#Jan 18, 2001. As a Visual C++ user for 10 years I can say that Microsoft deserves praise for their new ListView class. The MFC ListView class was, well, unpleasant to use. C# makes life a bit easier with a richer property and method set for ListViews. Also, you can now, set the ListView to select an entire row in report mode, something that in Visual C++ you had to write a whole custom ListView control to do. Note also the nice grid lines.
  • Creating a Windows Service in C#Jan 23, 2001. Windows Services is a new name for NT Services in .NET. This tutorial steps you through creating a Windows Service and how to install and start it.
  • 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.
  • Timer in C#Jan 26, 2001. An article with sample project explains how to work with the Timer control in C# and .NET to write to a text file after few seconds.
  • How to read Windows Registry?Jan 26, 2001. In .NET, the Registry and RegistryKey classes can be used to read and write registry ...
  • 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.
  • ADODataReader- Writing DataSets to XMLFeb 04, 2001. This file uses ADODataReader and other objects to write DataSets to XML and filling data from the XML files.
  • Developing 3-Tier Applications in C# and .NETFeb 04, 2001. The attached sample code explains for beginners, how to Code for a 3-Tier Architecture.
  • Web ProxyServer in C# and VBFeb 06, 2001. Web Proxy Server is HTTP proxy server written in C#.It is Multithreaded so many clients can access the web through this WebProxy Server.
  • Synchronization in Multi-threadingFeb 13, 2001. This article with sample code shows synchronization concepts of multithreading ..
  • Writing Your First Multithreading ApplicationFeb 14, 2001. If you have never written a multithreading application in C# or .NET, this application might be helpful for you.
  • Multithreading For BeginnersFeb 15, 2001. This tutorial is for beginners who want to write their first multithreaded application in C# and .NET.
  • 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.
  • Reading and Writing to the RegistryFeb 28, 2001. This is a class that both reads and writes to the registry that I made while converting some applications to use C#.
  • Sticky NotepadMar 05, 2001. I wanted to experiment with writing a program that would run from the "System Tray" of window (that's where you have the date displayed...) since that's not possible with pure Java.
  • Adding Items to a ListBoxMar 06, 2001. Sample code shows you how to add items to a list box.
  • Testing .Net Components Using NUnitMar 08, 2001. Write unit tests before starting development". Writing test allows me to see immediate results of every code change.
  • Serialization Sample CodeMar 13, 2001. A class on serialization.
  • Write Relational Data to an XML FileMar 15, 2001. This article shows you how you can write data from a database to an XML file using DataSet.
  • Write XML in C#Mar 27, 2001. In this article, I will show you how to use XmlTextWriter class to create an XML document and write data to the document.
  • Reading XML FilesMar 28, 2001. In this article, I will show you how to use the XmlTextReader class to read an XML document and write data to the console.
  • Writing Secure Code using C#Apr 06, 2001. Code access security is a mechanism that grants/denies access to resources within a method call. For example, code written by a person may be allowed to write to the disk while code from another one may be forbidden from accessing the disk. This control can be enforced even if the code written by both of them is used within a single application
  • Protecting IL Code from unauthorised DisassemblingApr 09, 2001. Microsoft .NET proved a mechanism where the code written in VB.NET, C# or any CLS compliant languages to generate MSIL (Microsoft Intermediate Language)code which targets the CLR and executes. This is an excellent mechanism to abstract the high level code from the underlying hardware.
  • Creating a Login User ControlApr 16, 2001. In this article, we have started with an introduction to the UserControl and have learnt to use the ADO+ DataReader.As we seen User Controls simplifies several common Web application scenarios.User Controls allow developers to easily define custom controls using the same programming techniques for writing Web Forms.
  • Naming Guidelines in .NETApr 20, 2001. Commenting and following a uniform naming guidelines in your code is one of good programming practices to make code more useful.
  • Understanding How Assert Effects SecurityApr 25, 2001. Assert is a security action that is evaluated at run time. Code Access Permission classes and Permission Sets support a method called Assert. Using the Assert method to control access to resources or actions will allow your code to perform actions that it normally has permission to perform and will allow other callers up stream in the call stack to have access that they would not normally have.
  • XML Strengths and Weaknesses with DOM, ASP, and XSLApr 30, 2001. In this article we're going to take a look at some of the terminology that comes with using XML and its related technologies, as well as how to create and transform XML documents with XSL using Microsoft's MSXML parser. To test the code samples shown in this article you should be running Windows NT/2000/XP with IIS installed. You should also have SQL server 2000 installed on the same machine.
  • Defining Custom Entry PointsApr 30, 2001. In this article i am going to demonstrate how we can manipulate the IL code to change the behaviour of how the .NET programme executes.
  • Viewing Assembly PermissionsMay 02, 2001. In this article I will show you how you can view the Code Groups that an assembly belongs to and what permissions belong to the assembly. I will demonstrate the Caspol utility supplied with the .NET SDK.
  • Connect to an Oracle DatabaseMay 03, 2001. This sample code shows you how to connect to an Oracle database using C#.
  • A Lottery Program in C#May 05, 2001. I am learning C# in any spare time I have and instead of diving in and writing a monster program I thought a nice introduction would be good.
  • Line Numbering Utility in C# and JavaMay 08, 2001. This is the first of the series of programs I wish to write to help myself get a handle on C#.
  • Operator Overloading ExampleMay 14, 2001. The code uses the feature of Operator Overloading in C#. It shows how different operators are overloaded and can be used in a easy manner.
  • cwTab - A Tab Control in C#May 18, 2001. cwTab is a control written in C# that gives you the ability to add Visual Studio.Net, Excel, and InterDev tabs to any application. The control is fully customizable.
  • Mobile Fun with XMLMay 24, 2001. Here is something really wonderful in Mobile field .This example is for authenticating the Mobile Users against his settings stored in XML file. This is really good where all the ease of XML is applied. Function open the XML file and particular node data validate it against user inputs and do the specified.
  • Data Structure Sample ExampleJun 04, 2001. Source code for Data Structure implemetation of Stack, Queue, Doubly linked list and more..
  • A Simple C# Utility to Help You Invent NamesJul 10, 2001. I wrote this simple console utility to help me think of a new name for a project I was launching.
  • .NET Brings The Fun Back to ProgrammingJul 11, 2001. Today, we are all comfortable sitting in front of our high powered computers running graphical user interfaces and compiling code in sophisticated development environments.
  • XML as Middle TierJul 12, 2001. There is always been a need that there will be an intelligent middle Layer between Database Server and the UI Code. There are many ways but one fantastic approach came in picture with the XML.
  • Scaling an ImageJul 13, 2001. This code will show You on way to scale an image with .Net Beta 2.
  • Using/Debug Option During CompilationJul 15, 2001. This source code below is an an example of how to use /debug option during compilation.
  • Tic Tac ToeJul 16, 2001. TicTacToe is a demonstration of the AI game playing minimax algorithm. The game plays out every possible combination of moves from each position and consequently is unbeatable. This example uses .NET Beta 2 and was written using a text editor.
  • .NET is the FutureJul 19, 2001. This has been a long time in coming. I couldn't write any more article because of some problems but finally I thought I should talk about the future of .NET. The reason is very simple, I'm getting almost 50 mails a day in my inbox just asking about the future of .NET and the comparison with other technologies. So I'm presenting my own views about the future possibilities of this technology.
  • 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.
  • Compute Feature of DataTableAug 01, 2001. The following code is for implementing least known feature of DataTable Compute() method.
  • Programming Mobile Forms : PalindromeAug 06, 2001. In this sample, the author explains how to write the palindrome for mobile FORMS.
  • Mastermind Game in C#Aug 10, 2001. This is the game of Mastermind written in C#. The game is played by clicking on a set of 4 colors and then hitting the score button. Colors can repeat themselves in this game, so be wary!
  • Get the Place Game in C#Aug 14, 2001. I have written a game in C# called Get the Place.
  • Message Box BuilderAug 14, 2001. This program will help you using MessageBox Class. Program generates code from what you choose.
  • Namespaces in C#Aug 20, 2001. Namespaces allow you to create a system to organize your code. A good way to organize your namespaces is via a hierarchical system.
  • Messaging between Threads using Message LoopAug 20, 2001. MessageLoopLib is a stripped down version of a complete, threading communication subsystem Ive written. This implementation is a single thread created in the GUI constructor. Ive dropped all thread management and have had to change some of the message code to accommodate this.
  • C# or VB.NET - World War IIIAug 23, 2001. In this article I'm going to go under the hood and show you what really happens to the in C# and VB.NET.
  • A Vision Regarding .NETAug 27, 2001. The present enterprise setup's need to have n-tire architecture with diverse platforms and object models communicating with each other. The present applications are to be created such that those applications have to run in any platform (like Windows, Linux, Mac , Unix etc) and which consist of components written in many programming languages and object models.
  • WhoIs Sample CodeAug 27, 2001. Sample example shows you how to implement WhoIs...
  • An insight into Code Reusability and COM Interoperability : Part IAug 28, 2001. Code reusability is the art of using existing code to achieve better productivity and ease of maintenance. The concept of reusability is not new. Its existence has been evident since the evolution of mankind.
  • Web Control BuliderSep 03, 2001. The attached C# program can be used by users who dont have VS.NET IDE to generate the code for WebControls.
  • Simple Game Developed in C#Sep 03, 2001. This article contains the code for a simple game developed using csharp. This game is all about arranging the shuffled numbers in ascending order.
  • 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.
  • Socket Programming in C#Sep 03, 2001. This program is useful for a starter who wants to write C# code using .Net Sockets.
  • A variety of Chart EnginesSep 07, 2001. The original code came from Scott Guthrie‚Äôs chart engine example. The differences from original code.
  • Regular Expressions Usage in C#Sep 07, 2001. The source code shows how to use Regular Expressions in C#.
  • Operator Overloading in C#Sep 10, 2001. The Source code below shows how to use Operator Overloading in C#. Operator Overloading is pretty useful concept derived from C++ by C#.
  • 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.
  • Windows Forms Without VS .NETSep 12, 2001. This article explains how to write windows forms application without using Visual Studio .NET IDE.
  • Using Attributes in C#Sep 14, 2001. This article shows how to create custom attribute classes, use them in code, and query them.
  • Doppler RadarSep 14, 2001. This is an app that will display the current doppler radar picture for any given zip code.
  • Web Based Front-End for SMTP Email ProgramSep 14, 2001. I have written a web based front end for SMTP email program. I have compiled it into a DLL.
  • Playing with StringsSep 18, 2001. This program explores the String class and its various methods. With this you will be able to initialize strings using different constructors and use them. To see how the methods of the 'String' class work, see the following code.
  • Constructor, Destructor and ILASMSep 20, 2001. I find C# a very interesting language and it also comes handy to analyze ILASM code.
  • Accessing Oracle DatabaseSep 21, 2001. This source code shows you how to connect to an oracle database and do operations such as select, insert, update and delete.
  • Working with Windows RegistrySep 25, 2001. In this small tutorial, I'll show you how to read, write and delete Windows Registry.
  • Share Information between C# and VBScript with RegistryOct 06, 2001. VBScript is widely used to write automation and system scripts. It is more powerful within Windows Script Host (WSH).
  • Encapsulation in C#Oct 12, 2001. In Object Oriented programming Encapsulation is the first pace. Encapsulation is the procedure of covering up of data and functions into a single unit (called class).
  • Creating your own Web Server using C#Oct 15, 2001. This article explains how to write a simple web server application using C#.
  • Creating your own Web Server using C#Oct 15, 2001. This article explains how to write a simple web server application using C#.
  • TextReader and TextWriter in C#Oct 16, 2001. This article covers the information of how to read or write (Unicode) character based data through TextReader and TextWriter.
  • MDI Forms in C#Oct 18, 2001. This article show how to create the MDI Form. The following source code will provide the use of MDI Forms in C#.
  • Checked ListBox Control In C#Oct 18, 2001. The following source code will provide the use of CheckedListBox Control In C#.
  • Calculator in C# (Windows Application)Oct 19, 2001. This is a simple calculator program that was written using Visual Studio.NET and C#.
  • Using TreeView ControlOct 23, 2001. The following code will enumerate the Folder/Drives in the TreeView Control.
  • Pointers in C#Oct 25, 2001. C# also supports pointers in a limited extent. A pointer is nothing but a variable that holds the memory address of another type. But in C# pointer can only be declared to hold the memory address of value types and arrays.
  • Reading and Writing XML in C#Oct 29, 2001. In this tutorial, you will learn how to read and write XML documents in Microsoft .NET using C# language.
  • Introduction to Pocket PCOct 31, 2001. At the time of writing (Oct 2001) Microsoft has shipped Pocket PC 2002 and also has just released the Visual Studio .NET add-on for Pocket PC called the compact framework.
  • FlashCards Language Program : How to read and save Images in a Sql Server Database using ADO.NETNov 09, 2001. I thought it would be fun to write a simple program that displayed flashcards from a database and at the same time, show you how to read and write images to the database. This program is a simple flashcard program that talks to a single table in a Sql Server Database.
  • Exceptions and Exception StackNov 16, 2001. The purpose of this tutorial is to explain firstly how you would go about creating your own set of exceptions to trap error conditions that could occur in your code or library, for your own benefit or for the benefit of another developer using your library. The second lesson is on how the C# exception stack works, and how you can use it to catch all types of exceptions.
  • An insight into Code Reusability and COM Interoperability - Part 2Nov 26, 2001. We have mushrooms of network systems running across the globe based on many proprietary protocols. In order to integrate these systems to communicate with each other in a more meaningful way, developers or organizations have to face an uphill task.

About Write-Code

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