C# Corner

Resources  
  • 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.
  • How to read Windows Registry?Jan 26, 2001. In .NET, the Registry and RegistryKey classes can be used to read and write registry ...
  • Using .NET Framework Multithreading and GDI+ to Enrich the user experienceMay 04, 2001. This tutorial shows you how to create, send, and received messages using MSMQ from the .NET base class library (System.Messaging) and C#.
  • Ouch! There is a Hook in My C#May 15, 2001. As an extension to the J++ design practice, C# has a syntactic construct, called Attributes, which let you drop hooks to Windows API or modify the runtime semantics, like threading synchronization behavior. The C# has legalized the hooking practice by calling them Attributes, and including them in ECMA C# specification.
  • Will Java and .Net Framework Co-exist?May 15, 2001. The article begins by briefly probing what constitutes the Java platform and .NET framework.
  • ADO.NET: What's changed in .NET Beta 2?Jun 20, 2001. ADO.NET API is one of the changed APIs. In this article, I've covered some of ADO.NET changes in Beta 2.
  • 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.
  • MP3 Tag EditorJul 16, 2001. MP3 Tag Editor is a simple GUI that allows MP3 ID3 (v1.1) tags to be created or edited.
  • C# and APIAug 08, 2001. API (Application Programming Interface) is a set of commands, which interfaces the programs with the processors.
  • Using MS Agent in C#-Part-I(Text To Speech)Jan 15, 2002. This article explains how to use MS Agent to write text-to-speech applications using C# and .NET.
  • Tutorial: Capturing and Running IE Instances in a Windows controlMar 15, 2002. In this article we are going to study how to find the running instances of Internet Explorer on your machine.
  • Multithreading Part 2: Understanding the System.Threading.Thread ClassApr 08, 2002. In this article we will study the .NET threading API, how to create threads in C#, start and stop them, define their priorities and states.
  • Exocortex.DSP - A C# Complex Number and FFT LibraryApr 08, 2002. Shows how to convert an image from a spatial representation (i.e. picture on the left) to a frequency representation (picture on the right) using a 2D fast Fourier transform.
  • Space Breakout - 2D Game Developed using DirectX and C#Apr 11, 2002. GDI+ is a feature rich graphics API that makes sophisticated graphical effects highly accessible to the C# developers. Unfortunately if youve tried to develop smooth detailed animation using GDI+ you have undoubtedly discovered that just how slow it can be. Consequently it is not particularly suited to games development, if you want to really take advantage of your 1 gig + processor and that fancy new graphics card youre going to have to get a little more low level and dirty, enter Microsofts DirectX API.
  • Space Breakout - 2D Game Developed Using DirectX and C#Apr 11, 2002. GDI+ is a feature rich graphics API that makes sophisticated graphical effects highly accessible to the C# developers.
  • Nemesis-7rc1 (Codename Deviate)May 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.
  • 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.
  • Using MSIL Code to Close Application ProgrammaticallyJul 18, 2002. You can use MSIL code to call Win32 APIs and one of the simplest example of it is by closing an application programmatically.
  • Sharp HSQL- An SQL Engine Written in C#Aug 01, 2002. .NET! C#! If you haven't been inundated with the marketing of Microsoft's new initiatives, you've been living in your cube without a web connection for quite a while.
  • Double Buffer Drawing with DirectDraw: Part1Aug 15, 2002. Because we will be primary focusing on 2D game programming in the first articles, we will use the DirectX7 API which is perfect for its DirectDraw class and simplicity. Don’t worry for not having the right DLL because DirectX8 has full backward compatibility to DirectX7 and the COM object should already be available on your computer if you have DirectX 8 installed.
  • Platform Invoke Sample - Changing the Desktop WallpaperSep 27, 2002. In this example we will see how to change the Desktop wallpaper by invoking a Windows API function from C#. The Platform Invoke mechanism allows you to access unmanaged functions implemented in dlls.
  • Printing Directly to the PrinterOct 21, 2002. Using this code enables you to print directly to the printer using WIN32 api calls and therefore should enable you to print at maximum speed rather than relying in the Windows Printing subsystems.
  • Platform Invocation Services in .NET FrameworkOct 25, 2002. This article will cover the details of Platform Invocation Services provided in .Net Framework. Platform Invoke Services acts as a bridge between the managed and unmanaged code. This service enables managed code to call unmanaged functions which are being exposed by any dynamic link libraries (DLL’s) such as Win32 API’s or any custom DLLs.
  • Integrating Google Search using the Google Web ServicesNov 20, 2002. This sample shows how to integrate search into your application using the Google Web Service API.
  • Kill an Application with System Menu using C#Nov 20, 2002. This article uses the Windows API’s to kill the application running under windows environment.
  • Working with Win32 API in .NETNov 21, 2002. Windows exposes lots of functionality in the form of Win32 API. Using these API you can perform direct operation in windows, which increases performance of your application.
  • 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.
  • Accessing Sharepoint Portal Server 2001 in .NETFeb 19, 2003. Sharepoint portal server provides a set of COM API that can be used to access its functionality from .NET applications via COM Interoperability. In this article, I will show you how to import SPP functionality in your .NET application.
  • Getting Official DayTime using NIST TimeServerApr 21, 2003. This program shows how to create a simple socket to a NIST timeserver (Port 13) and using the Daytime Protocol, gets the official time.
  • 2D ChartingAug 11, 2003. I was amazed at what the VS.NET IDE does for a programmer as I was primarily used to Java via the command line.
  • Check Internet ConnectionAug 25, 2003. How to check if your computer is connected to the internet with C#. It's much more easier that other tutorials I've seen in other sites.
  • BreakOut 3DSep 05, 2003. I really miss those days when everything was simple and in 2D. But now it’s different, people today must have everything in 3D. So here it is, my version of breakout.
  • Integrate Through Web Interfaces with C#Jan 08, 2004. This article proposes a way for integrating the enterprise applications through web interfaces. Since the web interfaces are widely available for many existing applications, the method may well reduce the cost of building an integration system with less time and get ride of the dependency on other resources.
  • Oracle Data Provider for .NET : Part IVFeb 20, 2004. Oracle Data Provider for .NET (ODP.NET) is an implementation of a data provider for the Oracle database. ODP.NET uses Oracle native APIs to offer fast and reliable access to Oracle data and features from any .NET application.
  • Oracle Data Provider for .NET : Part VIFeb 20, 2004. Oracle Data Provider for .NET (ODP.NET) is an implementation of a data provider for the Oracle database. ODP.NET uses Oracle native APIs to offer fast and reliable access to Oracle data and features from any .NET application.
  • Oracle Data Provider for .NET : Part IIIFeb 20, 2004. Oracle Data Provider for .NET (ODP.NET) is an implementation of a data provider for the Oracle database. ODP.NET uses Oracle native APIs to offer fast and reliable access to Oracle data and features from any .NET application.
  • Oracle Data Provider for .NET : Part IFeb 20, 2004. Oracle Data Provider for .NET (ODP.NET) is an implementation of a data provider for the Oracle database. ODP.NET uses Oracle native APIs to offer fast and reliable access to Oracle data and features from any .NET application.
  • Oracle Data Provider for .NET: Part VFeb 20, 2004. Oracle Data Provider for .NET (ODP.NET) is an implementation of a data provider for the Oracle database. ODP.NET uses Oracle native APIs to offer fast and reliable access to Oracle data and features from any .NET application.
  • Oracle Data Provider for .NET : Part VIIFeb 20, 2004. Oracle Data Provider for .NET (ODP.NET) is an implementation of a data provider for the Oracle database. ODP.NET uses Oracle native APIs to offer fast and reliable access to Oracle data and features from any .NET application.
  • Oracle Data Provider for .NET : Part IIFeb 20, 2004. Oracle Data Provider for .NET (ODP.NET) is an implementation of a data provider for the Oracle database. ODP.NET uses Oracle native APIs to offer fast and reliable access to Oracle data and features from any .NET application.
  • Real Time Communications in .NETMar 12, 2004. This white paper shares concepts of real time communications in .Net and its applicability in real world. A real-time communication system is used in applications where time is a critical factor.
  • My First Tablet PC Application using C#May 24, 2004. This step by step tutorial shows you how to create your first Tablet PC application using Visual Studio .NET and C# with the help of Microsoft Tablet PC API.
  • HTTP Handlers in ASP.NETAug 24, 2004. The low level Request and Response API to service incoming HTTP requests are HTTP Handlers in ASP.NET. All handlers implement the IHttpHandler interface, which is located in the System.Web namespace. Handlers are somewhat analogous to Internet Server Application Programming Interface (ISAPI) extensions.
  • Coloring the Console in C# Oct 25, 2004. When working with console applications in C#, you always see a black and white screen. What if we want to change the background color of the console? We can change the foreground and background color of our console application by using win32 API SetConsoleTextAttribute().
  • Moving C Structures into .NET with Custom MarshalingDec 17, 2004. Microsoft provides several attributes for marshaling C to C#. In our example we will take the case where we have hundreds of structures and only a few API calls, so we only need to generate the marshaled code for the structures.
  • Public Key Token Generation AlgorithmJan 31, 2005. The PublicKeyTokenGenerator class and a small utility that generates Public Key Token from the Public Key using that class.
  • .NET Color ListBoxApr 26, 2005. .Net ListBox control itself works fine, however as a base class for further derivation it is fundamentally flawed. The root of evil is in the Windows API ListBox. .Net ListBox is just a wrapper for this control.
  • Adding new Windows User Account using Active DirectoryMay 21, 2005. This article uses Active Directory to add new user account. The Active Directory will be accessed using windows native protocol (not LDAP).
  • Understanding ADO.Net Provider Factory in .Net 2.0Aug 08, 2005. This article describes the ADO.NET Provider Factory in .NET 2.0
  • ASP.NET Whidbey FeaturesNov 10, 2005. ASP.NET 2.0, the latest version of ASP.NET has many improvements that greatly increase developer productivity. This article gives you a peek into many of these new features available in ASP.NET Whidbey.
  • Playing Sounds in .NET 2.0 Using Sound PlayerFeb 13, 2006. If you have ever played sounds in your applications, you must be familiar with PlaySound() WIN32 function. Prior to .NET 2.0, there was no way to play sounds thorugh the managed API. The SoundPlayer class introduced in .NET 2.0 now allows developers to play sounds using managed API.
  • Message-level Declarative Security Using WSE 3.0Mar 06, 2006. Web Services Enhancement version 3.0 (WSE 3.0) is a SOAP extension managed API (Microsoft.Web.Services3.dll) compatible with the .Net Framework 2.0. This article explores WSE 3.0 in terms of implementing message-level declarative security to Web services and Web service clients.
  • Visual WebGui a unique approach to AJAX development Apr 20, 2006. Visual WebGUI is the first AJAX framework that lets you develop in full WinForms server side API, including design-time capabilities for creating rich internet application like outlook web access.
  • The .NET 2.0 Framework Provider PatternAug 11, 2006. The Provider Model Design Pattern was first introduced with the .NET 1.1 framework, specifically in the ASP.NET starter kits and was formalized in ASP.NET Whidbey as a membership management provider API (Application Program Interface). It's primary purpose is to separate the definition for an API from the implementation. This keeps the API flexible by enabling the core functionality to be flexible and easily changed.
  • Intergrating with google Search APIAug 17, 2006. This article will show us how to integrate with "Google Search API" from our windows application or web application.
  • The .Net Way of Calling APIs Jan 01, 2007. This article explains how an API can be called from .Net
  • Refreshing a parent page from a child in ASP.NET 2.0 Jan 19, 2007. I'm going to explain how to refresh a parent page from a child page using the new API of ASP.NET 2.0 and JavaScript language.
  • WPF Application for Importing ESRI ShapefilesFeb 26, 2007. A standalone application for reading ESRI shapefiles and displaying them on a WPF Canvas.
  • Animating your XAML AppsApr 05, 2007. This article will describe how to do 2D Animation using XAML Scripts. In the article we will describe how to implement transforms on XAML shapes and then how to move them around in your form.
  • XAML Layout using the Panel ClassApr 12, 2007. This article describes how to use the DockPanel element to achieve standard layouts in XAML. While there are a number of interface elements that can be used to position controls in your application, DockPanel provides one of the easiest mechanisms for defining scalable layouts.
  • Introduction to XNA: The Microsoft 2D and 3D Game Development PlatformApr 20, 2007. This article introduces you to the XNA Framework that makes game development easier than it ever was before. This sample features a star trek ship which you can move around the screen and shoot at the enemy Klingon Ship. The demo comes complete with authentic sound.
  • Reading and Writing XML using XLinqJun 21, 2007. XLinq is a new API to work with XML using LINQ. XLinq is more flexible, simple, and faster programming model to read, write, manipulate, and traverse XML documents.
  • Working with 2D Graphics in WPFOct 03, 2007. This article provides an introduction of 2D drawings in WPF.
  • Euler Rotation and 3D GraphicsJan 09, 2008. This article tells you how to use matrix multiplication to rotate 3D points around an axis.
  • Find and Close the window using WIN APIFeb 01, 2008. This article explains how to find and close the window using Win API.
  • Find, Minimize, Maximize, Restore the windowFeb 05, 2008. This article explains you how to find, minimize, maximize, restore the window using win API.
  • Google Maps Control for ASP.Net - Part IMar 27, 2008. This is a user control for ASP.Net. You can use this control to insert google map in your aspx pages.
  • Using the Prosper API to Automate the Loan MarketApr 23, 2008. This article describes how to begin building applications specifically geared to the Prosper.com website. Prosper.com is a popular auction-style site that helps fulfill loans to individuals through a bidding process.
  • How to Generate an XML Document Programmatically-Using System.Xml.XmlWriter: Part IIIJun 26, 2008. In previous articles, I demonstrate how to generate a given xml file using both the DOM “Document Object Model” and the SAX “Serial Access parser for Xml” technologies. In fact, they are very interesting API for handling xml entities or files but the dot net provides us another way to achieve the same goal.
  • Catch a Snapshot via your webcam using C#: Part VIINov 08, 2008. In this article, I will show how to catch a snapshot view from your personal web cam.
  • Silverlight Canvas ControlDec 02, 2008. The Canvas control, used as a container for child controls, defines functionality to position the child controls. This article demonstrates how to create and use a Canvas control in Silverlight using C# and XAML.
  • Draw a smooth curve through a set of 2D points with Cubic SplineDec 24, 2008. Calculate tabulated function cubic spline and approximate comprising polynomials with polylines to use them with drawing primitives.
  • Coding Better: Programming From the Outside In. Part IJan 25, 2009. Modeling an API for a domain is a difficult task. The trick is to get the correct level of encapsulation/abstraction while making the API easy to understand and consume. If we can model our domains at the same level that we understand them linguistically then we are 90% of the way there. This article discusses a programming methodology by which we can build a concise interface that will provide a consistent level of abstraction and is easy to code against.
  • Coding Better: Programming From the Outside In for Fluent Interfaces. Part IV - A Real World ApplicationFeb 09, 2009. In this article we'll look at building a fluent interface to abstract parameter assertions which gives us readable code that closely models spoken/written language. This will make code consuming our API contain less code debt and reduce the total cost of maintenance.
  • Integrate XML Data Within your ASP Page Using XLINQ: Part IIFeb 18, 2009. In this tutorial I will expose a technique to integrate XML data within your ASP page using XLINQ API.
  • OpenFileDialog in C#Jun 09, 2009. The OpenFileDialog object interacts with the Computer’s API (Application Programming Interface) to present available files to the user and retrieves the user’s file selection back to the program.
  • Changing Display Settings ProgrammaticallyAug 26, 2009. Learn how to change display settings (resolution, bits, rotation, etc.) via C# and Win32 API.
  • Creating Transacted FilesSep 02, 2009. In this article we will learn how to create transactional files in Windows Vista and descendants.
  • Programmatically Swapping Mouse ButtonsSep 06, 2009. In this article we will learn how to swap mouse buttons programmatically - to make the left button acts as the right and vice versa.
  • How to develop your own Expander Control in SilverlightSep 25, 2009. In this article we will see how to open and collapse a control on mouse click.
  • Clearing the Console Screen using API Sep 27, 2009. Learn how to clear the Console screen using Win32 API calls. Also learn additional techniques like how to clear a specific portion of the screen or to move it.
  • Get Installed Speech Voices in WPFOct 08, 2009. This code snippet shows how to get all installed speech synthesis voices on a computer using Speech API in WPF and C#.
  • Programmatically Turning on the Screen Saver Oct 08, 2009. Learn how to programmatically turn on the screen saver via Win32 API and C#.
  • Moving a Form without the Title BarOct 12, 2009. In this article, learn how to to allow the user to move the form without its title bar.
  • GDI+ ApplicationNov 01, 2009. In this article we move to the more practical aspects of writing graphics applications using GDI+ in the .NET Framework.
  • Canvas in WPFDec 14, 2009. In this article, you will learn how to use a WPF Canvas panel using XAML and C#.
  • Generate and add keyword variations using AdWords APIDec 21, 2009. This article will explain how to programmatically add Keywords under some AdGroup. Presented is an application that adds all combinations of certain set of keywords under specified AdGroup.
  • Getting friendly with jQuery (A beginners guide + added auto TOC generation + text entry limit)Jan 09, 2010. jQuery is a javascript library with rich API to manipulate DOM, event handling, animation and ajax interactions. The following are the essential features of jQuery that makes it so appealing for client side scripting.
  • Marshaling UnionsFeb 21, 2010. In this article you will learn how to marshal C/C++ Unions in C#.
  • Checking Improper DISPOSE in assemblies using SharePoint APIFeb 23, 2010. In this article I will show how to check improper disposing of instance of SharePoint classes in an assembly.
  • Google Analytics API integration with ASP.NetFeb 26, 2010. In this article I will demonstrate how to integrate Google Analytics API with ASP.Net.
  • Adding Entries in SharePoint Web Configuration File using SPWebConfigModificationMar 03, 2010. This article explains about interaction with web.config through SPWebConfigModification API.
  • Creating a Sound Recorder in C and C#Mar 23, 2010. In this article we will learn how to record audio and play sound files in C and C#.
  • Import Gmail Contacts into ASP.NET GridViewMar 24, 2010. In this article I will explain how to import gmail contacts of a user by using GContacts Data API provided by Google.
  • Introduction to JQuery UIMar 24, 2010. In this series, we will cover one of the plug-in of JQuery called as JQuery UI.
  • Hard Links vs. Soft LinksApr 06, 2010. This article talks about hard links and soft links; two of the nice features of NTFS file system.
  • Miscellaneous Advanced 2D Topics in GDI+Apr 13, 2010. In this article I will explain about miscellaneous Advanced 2D Topics in GDI+.
  • Creating a Simple Twitter Client ApplicationApr 25, 2010. In this article you will learn how to access Twitter API (sample application available.)

About Canvas-2D-API

NA

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
Download Free eBooks