C# Corner

Resources  
  • Browse or Open a FileDec 15, 2000. This sample code show you how to use OpenFileDialog class to open or browse a file.
  • Word Pad in C#May 11, 2001. This application explores the Rich Text control in C#,its properties and methods. Explains the usage of common dialog boxes File open, File save and Font dialog box.
  • 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.
  • 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. The concepts in this article can be used to create any Form Application so that you can design forms that you can Fill Out, Open, Save, Print and Print Preview.
  • Web Services between .NET, Java and MS SOAP Toolkit: Part IAug 24, 2001. WinGhost 2.0 application allows you to show and hide applications running on your machine. I find this program useful at my work as I do lot of programming at any given time I can have a bunch windows open. I use it normally to hide just my windows I don't access that often.
  • Image Shuffler Game in C#Oct 01, 2001. This game asks for a Image file to be Opened When the file is opened and shuffle button is clicked the image will be Shuffled ie rotated clockwise the task is rearrange the image in the Correct order using the button provided.
  • How To Open and Read an Excel Spreadsheet into a ListView in .NETNov 26, 2001. The Interoperability services make it very easy to work with COM Capable Applications such as Word and Excel.
  • Image Viewer in C#Feb 01, 2002. This program allows you to open and view image files including JPEG, GIF, WMF and other images.
  • Creating and Opening Microsoft Word Document from .NET Using C#Mar 08, 2002. This article is being written in response to a couple inquiries on the question, "How do I open a word document from .NET?".
  • ExoEngine - A C# OpenGL 3D EngineApr 12, 2002. For my fourth year computer graphics course I wrote a little 3D engine using C# and the .NET platform.
  • Creating an Instance of Internet Explorer in C#Dec 19, 2002. I was trying to write a program that opened an instance of Internet Explorer in a separate window, rather than use the Browser control that comes with the .NET platform.
  • Speedometer: Applying GDI+ TransformationsFeb 10, 2003. This zip file contains two folders - one folder contains speedometer control and the other contains the application that uses the control. Put both folders in the same location and open the application in VS and run it.
  • Opening and Viewing Text and Image FilesMar 08, 2003. 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.
  • Hotmail using C# - An HTTPMail Client under .NETMar 21, 2003. The great thing about the POP mail protocol is that it is a well-documented open standard and writing a mail client to collect mail from a POP box a relatively painless process.
  • 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.
  • Talking to the Outside World in Excel 2003May 14, 2003. This code sample shows how to connect to the internet inside of Excel 2003. The idea is when the workbook opens the code behind the workbook searches for quotes on NASDAQ and then populates the spreadsheet with the data.
  • Part I: Simple Color Syntax Code Editor for PHP written in C# and .NETJun 18, 2003. The Application is a simple Windows Form program that allows you to open and save the text files edited in the rich edit control, as well as print them out. The program takes advantage of a “syntax” text file for PHP which lists the functions and keywords contained in the PHP language.
  • User Controls in Internet ExplorerAug 13, 2003. WinGhost 2.0 application allows you to show and hide applications running on your machine. I find this program useful at my work as I do lot of programming at any given time I can have a bunch windows open. I use it normally to hide just my windows I don't access that often.
  • Transforming Visual Studio .NET Projects into NANT files using XSLT and .NETApr 16, 2004. I was looking for a solution on how to execute an XSL transform on a C# project file and convert it to a Nant build file. Nant provides the xsl file to do the conversion under the open source license agreement, but Nant does not provide away of producing the transformation.
  • Handling Oracle Max Open Cursor Error when Fetching Multiple Rows in ADO.NETAug 18, 2004. When working with Microsoft technologies, MS SQL Server comes out as a natural choice for the database. While it is a fact that .NET Framework has extensive support for SQL server, when you work with other databases like Oracle the situation might turn out to be a little more tricky than it is with SQL Server.
  • Microsoft Application Center TestOct 13, 2004. Application Center Test (ACT) stress tests Web servers and analyze performance and scalability problems of Web applications. ACT simulates a large group of users by opening multiple connections to the server and rapidly sending HTTP requests. It also supports several other authentication schemes and the SSL protocol, making it ideal for testing personalized and secure sites.
  • A comprehensive view of SharePoint: Part IINov 19, 2004. Enterprise portals are an important part of today's enterprise IT infrastructure. Portals are used as an entry point for a specific topic, organization, project or team. Many enterprises have an enterprise portal, opened by default when an employee opens up a browser, which shows general information about the enterprise, its strategy, its departments, etc.
  • Display a Web Page in a Windows FormsJan 31, 2006. In this article, we will see how we can display a web page on Windows Forms.
  • Introduction to the MagicAjax.NET - The Magic Ajax Engine for .NETFeb 11, 2006. MagicAjax.NET is a free open-source framework, designed to make it easier and more intuitive for developers to integrate AJAX technology into their web pages, without replacing the ASP.NET controls and/or writing tons of JavaScript code.
  • Programmatic Interaction with Control Panel Using VS.Net 2005Feb 21, 2006. This is simple sample on using Shell and some of its methods. Provided code will open windows that represent Control Panel’s applications. It’s just demonstration on shell usage.
  • Writing Dataset to Excel in ASP.NETMar 01, 2006. This article is helpful for those who would like to write dataset contents to a excel file and try to display it in the browser.
  • AI: Using Genetic Algorithms and NetSpell to Solve AnagramsMar 27, 2006. Remember the puzzles where you are given a jumble of letters and you have to unscramble a word? This article shows you how to use a genetic algorithm and NetSpell, an open source spell checker, to solve these anagram puzzles.
  • Using static variable and Activated Event for Building "Home" Button of Windows applicationApr 10, 2006. In this tutorial I will share experience how , just with the help of a few clicks and a few lines of code , to build a windows application with "Home" button, that allows to return to "Home" form (in fact to close all opened forms by one click) . The examples are written using C#.
  • Using Delegates to Communication Between Windows FormsSep 04, 2006. Delegates are one of the wonderful features of .Net Framework. Their primary use is focused on support event handling and callback mechanism. In this article we will explore how to use delegate as callback support to make simple communication between deferent opened windows forms
  • Image Conversion Utility in C#Sep 14, 2006. This article describes a very easy approach to building an image conversion utility that will permit the user to open a supported image type and convert it to another supported image type.
  • Read and write Open XML files (MS Office 2007)Sep 22, 2006. This article shows how to read and write Open XML files (MS Office 2007).
  • Creating and Opening Microsoft Word Documents from .NET Using C#Oct 25, 2006. This article answers "how do I open a word document from within a .NET application."
  • HTTP:/1.1 500 Internal Server ErrorFeb 09, 2007. If you are running two versions of ASP.NET, you may get HTTP:/1.1 500 Internal Server Error when creating a new Web project or opening an existing Web project in Visual Studio.
  • Image Mapping UtilityFeb 23, 2007. This article describes an easy approach to building a simple image mapping utility that may be used to mark and store points as pixel based coordinates from an image file or directly from a web page.
  • Build a Simple Watermarking Utility in C#May 07, 2007. This article shall describe an approach to building a simple watermarking utility that may be used to add watermarks to any supported image file format. The resulting application shall permit the user to open any supported image file format into a scrollable picture box.
  • Error Opening SSIS PackageMay 30, 2007. I got a weird error when trying to open an SSIS package in VS2005.
  • Printing Text File in C#Jun 07, 2007. In this article, you will learn how to print a text file in C#. The attached project lets you browse and open a text file and print it to a printer.
  • Fill in PDF Form Fields Using the Open Source iTextSharp DLLJun 18, 2007. This article describes a quick and simple approach to programmatically completing a PDF document through the use of the iTextSharp DLL.
  • Connection PoolingAug 11, 2007. While performing any database activity it is necessary that every single connection need to be closed, but in case your application throws some exception in that case our connection wont’ get closed. And you will get error “Cannot open connection, it is already open” In this article I will be discussing what is connection pooling? Why connection polling & how we can enable connection pooling etc.
  • Color Syntax Editor Part II - Exporting a RichTextBox to a Microsoft Word DocumentAug 14, 2007. This article is part II of a color syntax editor created back in 2003. It describes how to export the contents of the RichTextBox to Word and Open the Word Document Programmatically.
  • Writing Better Code - Keepin' it ExtensibleFeb 21, 2008. In a previous article I talked about how to keep code cohesive by applying the Single Responsibility Principle. I wanted to explore part of another principle of software engineering that will help our code be extensible and can handle growth and change.
  • Save the application settings for subsequents sessionsApr 19, 2008. It is very important to save the application settings established by the user in the current session, in order to avoid the application pattern establishment for each time a new session is opened.
  • Manage Data in a Win Forms Application (without the Database)May 12, 2008. This article provides an approach to building an application that may be used to collect, store, and retrieve data without relying upon a database to get there.
  • Access the Same Instance of Internet Explorer WindowJun 26, 2008. This tip shows how to open an URL inside an Internet Explorer browser window from your C# application. Furthermore it shows how to update that specific window.
  • Opening Jars with C# Jul 07, 2008. This article shall describe an approach that may be used to extract Jar files. Jars are merely files compressed using zip compression; the primary difference between a standard trash zip file and a jar file is that the jar file includes a manifest; also a true jar files can be run as an executable on a machine equipped with the java runtime.
  • Image Viewer in WPFAug 12, 2008. ImageViewer is an open source project written in WPF and C# that allows users to view images and manipulate them.
  • Explore BrowserAug 13, 2008. The attached project is an advanced Web Browser application that open all web sites sites.
  • Adding FooTnotes to a Word Document Programatically (MS Office 2007 word)Oct 06, 2008. This is an article about adding footnotes to a word document programatically. I had this as one of my requirement while generating word documents dynamically, and i really struggled to acheive it, as well as find some help online.
  • OpenFileDialog in SilverlightNov 30, 2008. The OpenFileDialog allows users to select one or more files on the local computer or on a networked computer. This article demonstrates how to create and use an OpenFileDialog control in Silverlight using XAML and C#.
  • MyCollegeMyFriend - An Open Source Project developed using ASP.NET 2.0Jan 14, 2009. MyCollegeMyFriend is an open source Website project developed using C# and ASP.NET 2.0. Anybody can download and make changes to this project and upload the changes.
  • RFC Architecture for Finance Project (The Invoicing Project)Feb 26, 2009. RFC is an open source initiative for Finance projects. It has reusable components like invoicing, accounting and purchase modules. In this section we will discuss about the Invoicing section of the RFC architecture.
  • Using NHibernateMar 04, 2009. NHibernate is an open source project for Object/Relational mapping to persist objects in a relational database. This article is a step by step tutorial on how to work with NHibernate.
  • Hello WorldMar 16, 2009. The goal of this article is to teach and explain C# in such a way so that when you have finished it you will be able to program in C#.
  • Using PostgreSQL from Microsoft.NETJun 04, 2009. PostgreSQL is one of the most important relational database systems in the open source world. It is released under a BSD style license. I’ve seen a few documents talking about the development of .NET application with PostgreSQL as the back-end server. That’s why I’m writing this article to illustrate how you can access to the PostgreSQL database system using C#.
  • Opening a Word Document in ASP.Net MVC ApplicationJul 23, 2009. This Article will explain , How to open or display a word document in ASP.Net MVC application.
  • How to read and write ODF/ODS files (OpenDocument Spreadsheets)Jul 25, 2009. This article will explain basics of ODF format, and specifically its implementation in spreadsheet applications (OpenOffice.org Calc and Microsoft Office Excel 2007 SP2). Presented is a demo application which writes/reads tabular data to/from .ods files.
  • Web Browser control in WPFJul 30, 2009. In this article, I am going to show you; how to work with Web Browser control in WPF? We will be opening a web site (even a Silverlight Enabled web site in WPF application) in the new Web Browser control.
  • OpenFileDialog in WPFAug 11, 2009. This article shows how to use an OpenFileDialog control in WPF and C# to browse files.
  • 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.
  • Drawing Splines and Curves in GDI+Nov 24, 2009. In this article I will explain how to draw Splines and Curves in GDI+.
  • Social Networking Website in ASP.NET - Open Source ProjectDec 15, 2009. The attached project is an open source social networking Web application project written in ASP.NET 3.5 and C#. Some of the features are for creating profiles, searching users, making friends, chatting and communication.
  • WPF OpenFileDialogJan 28, 2010. This article will tell you how to use OpenFileDialog using WPF. OpenFileDialog represents a common dialog box that displays the control that allows the user to open a file.
  • An Open Source Project - R-Bank Management SystemApr 02, 2010. This is an open source project based on a Bank Management System. This project covers all functionality related to a bank. This project uses WPF.
  • Developing a Tablet Application for Sales ForceMay 19, 2010. Mobile access to data is becoming part of our lives. Not only in personal sphere, but especially in variety of industries can be seen a growing demand for mobile data access. People use laptops, smartphones and pocket PCs and the market is opening for tablets more than ever before. Let's find out what developers might use when developing tablet applications.
  • RIA Services - exposing OData serviceMay 24, 2010. Open Data Protocol (OData) is a web protocol which is used for querying and updating data. In this article we will see how to enable OData service in our RIA services.
  • Development of Text Editor Teditor 1.5Jun 01, 2010. This application is adapted to viewing text files, it can carry out also creation of new files and editing of existing files. It allows the user to enter the name of a created or opened file. The user can scroll the text in a multi-line text component then there are seen other areas of the text.
  • OpenFileDialog in C#Jun 11, 2010. An OpenFileDialog control is used to browse and select a file on a computer. This article demonstrates how to use a windows Forms open file dialog in C#.
  • PrintDialog in C#Jul 13, 2010. A PrintDialog control is used to open the Windows Print Dialog and let user select the printer, set printer and paper properties and print a file.
  • How to handle error- Cannot open database "MSCS_Admin" requested by the loginSep 20, 2010. In this article you will learn how to handle error- Cannot open database "MSCS_Admin" requested by the login. The login failed.
  • 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.
  • How Create Excel File Through Open XML Package (OOXML)Dec 14, 2010. In this article I will explain how we can create Excel File through OOXML.
  • How to open XAML files in the Silverlight tab controlDec 21, 2010. In this article we will be seeing how to open the xaml files in the Silverlight tab controls.
  • Popup Window in WPFJan 19, 2011. This article shows you how to add controls, how to Open and Close the Popup Window.
  • Python with .NET 4Jan 27, 2011. IronPython is an implementation of the Python programming language targeting the .NET Framework and Mono ( A cross platform open source Dotnet framework currently targeted for Linux). IronPython is written entirely in C#.
  • AutoComplete in Windows Phone 7Feb 03, 2011. AutoComplete is used for when you type something into a textbox a popup window opens with a list of words that begin with the prefix typed into the textbox.
  • How to Show PDF file in C#Feb 07, 2011. This article shows how to show a PDF file in a Windows application with the help of the Adobe ActiveX COM.
  • DALC4NET (An All in One .NET Data Access Layer) Feb 07, 2011. DALC4NET is an Open Source data access layer built for Microsoft .NET projects. This enables us to access data from SQL Server, Oracle, MySql, MS Access, MS Excel etc. data bases.
  • How to: Easily Query a DatabaseFeb 14, 2011. Often there is a need to obtain data from a database and sometimes it becomes hectic to write pieces of code again and again. Like Connection Open statement, Error Message Coding, Connection string etc. This can be optimized by making a class and calling the methods of the class with the appropriate query string.
  • Performing Button or Link Click Server Side Functionality into a New WindowFeb 15, 2011. A common scenario here is that we have a button (or link) that when clicked we want some server code to fire but at the end of the request we actually want to display the content in a new window.
  • How to make Image Editor Tool in C#Mar 17, 2011. How to make an image editing tool with the help of C#.
  • How to make image editor tool in C#: Resizing imageMar 22, 2011. In this article we will learn about resizing an image,
  • How to make image editor tool in C# : Cropping imageMar 23, 2011. This article describes how to crop an image in C#
  • Windows Phone 7 DatePicker ControlMar 28, 2011. This article demonstrates the use of a DatePicker control in Windows Phone 7. By default the DatePicker shows today's date; when the control is clicked a dialog should open for selecting day, month and year; then after clicking done, the selected date should load into the control.
  • How to open a Word document from an ASP.NET applicationMar 30, 2011. This article demonstrates how to open a Word document in an ASP.NET application.
  • Web application Export to Excel Advanced using open source library EPPlusApr 27, 2011. Here you will see Web application Export to Excel Advanced using open source library EPPlus.
  • Enhancing Media Experience in Silverlight with Microsoft Media Platform (MMPPF)Jun 23, 2011. This article will focus extensively on the Microsoft Media Platform Player Framework (MMPPF) from Microsoft which is an open source player framework and it's implementation.
  • Start working with MonoDevelopJul 29, 2011. MonoDevelop is an IDE primarily designed for C# and other .NET languages it is an open source integrated development environment for the Linux platform, Mac OS X, and Microsoft Windows.
  • Creating and Updating EXCEL file in Windows Azure Web Role using Open XML SDKAug 28, 2011. Lets learn how to creating and updating EXCEL file in Windows Azure Web Role using Open XML SDK.
  • Keeping Multiple Panes open in Accordion Web ControlSep 27, 2011. This article shows an enhancement to allow multiple panes of the accordion controls to be open at the same time.
  • Inserting in Excel FILE from C# Collection Using Open XML SDK 2.0Oct 10, 2011. In this post I will show inserting rows in to an excel file from a c Sharp list using the Open XML SDK. The Open XML SDK is very useful when you don’t want to or cannot use the Microsoft Office InterOP DLL.
  • Reading EXCEL FILE in a Collection sing Open XML SDK 2.0Oct 10, 2011. In this post, let us try to do the reverse process. We will read all the rows of an Excel file List of Bloggers. Again starting with creating a custom class.
  • Windows Azure - Create Storage AccountOct 21, 2011. For storing in Windows Azure Storage we need to create a Storage Account.
  • Online Shopping Website in ASP.NET- Open Source ProjectOct 26, 2011. This is an open source project I named online shopping site.This is an online shopping cart application written in ASP.NET (4.0) and C# where a user can browse, add items to the shopping cart and place orders.
  • Introducing MonoOct 31, 2011. Mono is an open-source implementation of the .NET Framework and is cross platform. Mono is Sponsored by Xamarin. It is based on ECMA standards for C#. Core Mono environment is the basis of the Mono platform and additional components offer enchanced functionality like Window forms, Threading etc.
  • Opening Webpages in Frame Control using Expression BlendNov 08, 2011. In this article you will learn how a simple frame can act as browser to display the complete webpage and this input is taken from combo box item, while a label displays the web address.
  • Open a screen after saving another screen in a LightSwitch ApplicationNov 23, 2011. In this article we will discuss about the messagebox and inputbox for opening a screen after saving another screen in LoghtSwitch.
  • Introduction to PHPNov 26, 2011. PHP Stand for "Hypertext Preprocessor". PHP is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.
  • Installation of XAMPP Server to run PHP programNov 28, 2011. XAMPP Server is a free and open source cross-platform web server solution stack package, consisting mainly of the Apache HTTP Server, MySQL database, and interpreters for scripts written in the PHP programming languages.
  • Windows Azure - Cmdlets UsageDec 01, 2011. For continuing with this article you need to open the PowerShell window and enter the command: Add-PSSnapin WAPPSCmdlets
  • Cursor in MySQLDec 01, 2011. In this article we are going to describe the MySQL cursor and how to declare, open, fetch and close it.

About Open

NA
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