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#.
  • Will Java and .Net Framework Co-exist?May 15, 2001. The article begins by briefly probing what constitutes the Java platform and .NET framework.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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 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.
  • 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 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 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 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • Creating a Simple Twitter Client ApplicationApr 25, 2010. In this article you will learn how to access Twitter API (sample application available.)
  • Create Word Document without using COM component (Interop) or Third party API'sJun 24, 2010. In this article we will see how to create word document without using COM component (Interop) or Third party API's.
  • Checking if User is connected to Internet or Not using Win32 API and C#Aug 07, 2010. Article Checking if User is connected to Internet or Not using Win32 API and C#
  • How to use google ajax search api to embed video searh in web application:Aug 21, 2010. Google has launched Ajax API for different purposes “video search” is one of them. Many user's gets confused all about it many times how to get google key, how to embed video search in web application. So here I am explaining how to use video search in web application.
  • Consuming URL Shortening Services - IntroductionAug 24, 2010. This is the first article of our series that talks about accessing URL shortening services programmatically. Here we introduce new concepts like the REST API. We also have a brief discussion of URL shortening services APIs and how you can access them.In addition, we are going to talk about .NET support for the REST API and tools and techniques available that would help us during our journey through the API.A working example built using C# and WinForms is available at the end of this article.This article is the base for all other articles. Articles other than this discuss specific services and their APIs. We will make use of code and techniques discussed here throughout the rest of articles.
  • Consuming URL Shortening Services - is.gdAug 26, 2010. Another article of our series that talks about accessing URL shortening services programmatically.This article is talking about is.gd shortening service, how you can use it, and how to access it via your C#/VB.NET application.
  • Consuming URL Shortening Services - Tweetburner (twurl)Aug 27, 2010. Just another article of the URL shortening services series.Today, we are going to talk about another hot and easy-to-use service, it's Tweetburner. If you haven't used it before, then it's the time to.We’re going to discuss how to use Tweetburner first. After that, we’ll inspect its API and learn how to use it in your .NET application.
  • Consuming URL Shortening Services - CligsAug 30, 2010. This is another article that talks about URL shortening services. Today we are going to talk about Cligs, one of the popular shortening services on the web.
  • Create Restful WCF Service APIAug 30, 2010. In this article I am going to explain you how to implement restful service API using WCF 4.0 . The Created API returns XML and JSON data using WCF attribute.
  • Consuming URL Shortening Services – bit.lySep 01, 2010. This is a very hot article that you can’t leave without checking it first. This article is talking about the most popular and powerful URL shortening service ever, bit.ly.Today, we are going to talk about bit.ly API, its functions, and how you can access them from your .NET application.Don’t forget to download the sample code at the end of the article.Let’s go!
  • Consuming URL Shortening Services - X.coSep 23, 2010. This is another article of our URL shortening services series. This article is talking about X.co shortening service provided by Go Daddy. If you don’t know how to access this service from your .NET application, then it’s the time to.
  • Hooking into your Google Apps With the RSSBus Google Data ProviderDec 01, 2010. This is a review of a component called the RSSBus Google Data Provider which allows you to access the Google API through a Sql Data Provider. This provider opens up the entire Google Application Suite to the .NET developer through familiar ADO.NET tools and classes.
  • .NET Interoperability at a Glance 1 – IntroductionDec 26, 2010. In this article and the few following it, we’ll try to take a tour in Interoperability in .NET Framework.
  • .NET Interoperability at a Glance 3 - Unmanaged Code InteroperationJan 05, 2011. This is the last article in this series, it talks about unmanaged code interoperation; that’s, interop between .NET code and other code from other technologies (like Windows API, native libraries, COM, ActiveX, etc.)Be prepared!
  • Building Applications that Can TalkJan 21, 2011. In this article we are going to explore the Speech API library that’s part of the TTS SDK that helps you reading text and speaking it. We’re going to see how to do it programmatically using C# and VB.NET and how to make use of LINQ to make it more interesting. The last part of this article talks about…… won’t tell you more, let’s see!
  • How to make a Twitter Application using Windows Phone 7Feb 04, 2011. This article describes how to use the Twitter API and show all tweets on a page using Windows Phone 7.
  • Converting XML data to CLR object using XmlSerializerFeb 14, 2011. My last Post (Consuming Webservice from Silverlight) was all about accessing a web service/API from Silverlight; there I described how to consume an external API, with a sample from GeoName web services. As I said in that article, this article is the continuation. Here I am going to demonstrate how to convert the result output, which is in XML, to a CLR object and of course using it as a datasource in a Silverlight application.
  • Use the Force - Creating Salesforce Apps with RSSBus and SyncfusionFeb 20, 2011. Salesforce.com allows your sales team to track customers and prospects to help manage selling your products and services. With the help of RSSBus and Syncfusion, you can tap into the Salesforce.com API and take control of the data for your sales accounts. This review delves into the features of RSSBus and Syncfusion that help you get there.

About api

API stand for (Application Programming Interface) which is collection of prewritten packages, classes, and interfaces with their respective methods, fields and constructors. It is work as an user interface between humans and computers. An API working as a software program which is provide interface service interaction. In C# , ASP.Net and Java most basic programming tasks are performed by the API’s classes and packages and these are helpful in minimizing the number of lines written within pieces of code. In these APIs many components are pre created and commonly used. All the programmer use these prewrittin code via APIs. After referring to the available API classes and packages, the programmer easily invokes the necessary code classes and packages for implementation.

SPONSORED BY

C# Corner Chandigarh DevCon16
Chandigarh DevCon16 is a one-day Developer Conference where programmers, technologists, authors, and members meet, demonstrate, plan, and hang out.
Download Free eBooks