C# Corner

Resources  
  • CSDownloadURL : Download Contents of a Web PageDec 03, 2000. CSDownloadURL is a class which has two functions - SetURL and DownloadURL. The set URL sets the current URL and GetDownload downloads the URL contents and returns its contents in a string.
  • 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.
  • Buton Viewer: View ImagesFeb 27, 2001. Well, In .NET, the Image class is a wonderful class to view images. No matter what control you have, you just set the Image property of that control to an image and the control will display the image. Neat?
  • 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.
  • 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.
  • Graphics Animator in C#May 26, 2001. This program will generate a html page with animated gif. You just need at least 2 gifs and use the program to set the time to display each image.
  • Properties in C#: New Cover on old book Jun 06, 2001. Properties are accessor methods whose job is to retrieve and set the values of fields.
  • Reminder ProgramJun 08, 2001. The program allows you to set a running timer to remind you of an upcoming event.
  • A Better Notepad using C#Jul 30, 2001. We can use windows registry for saving default setting of notepad. We can used notepad in C# easily.
  • C# and APIAug 08, 2001. API (Application Programming Interface) is a set of commands, which interfaces the programs with the processors.
  • 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!
  • Enhance Batch File Functionality With C# Application : Part IOct 12, 2001. Batch (.bat or .cmd) file has its rich set of commands and processing directives.
  • 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.
  • Using ADO RecordSet in ADO.NETDec 10, 2001. Using ADO recordset in managed code using ADO.NET data providers is pretty simple. Visual studio .NET provides you to add reference to the COM libraries. In this article I'll show you how to access data using ADO recordset and fill a ADO.NET data provider from the recordset data.
  • XP, Component Services and .NETDec 13, 2001. First of all, COM+ does revolutionize COM; it is not only a superior new version of the COM programming model it is also a new platform to design and develop components. In addition, COM+ Services in XP does have some differences from Windows 2000; also XP and COM+ 1.5 offer a richer set of services than was available in COM+ 1.0. This article will describe the basic component services on the XP.
  • NUnit for people who can't cook - Part IDec 13, 2001. This article should l help C# user to get the most out of NUnit. Therefore, we are going to cover not only the usage of NUnit , but also the small tricks on how to set it up most efficiently.
  • Graphics Programming in C#Dec 26, 2001. The new improved version of GDI is called GDI+. The .NET framework provides a rich set of classes, methods and events for developing applications with graphical capabilities.
  • Mandelbrodt Plotting Program Using C#Jan 31, 2002. This program illustrates the use of the algorithm to create the Mandelbrodt set. The formula is an iterative one and is plotted in the complex plane (x, yi).
  • Programming C#: Working with Arrays in .NETJul 09, 2002. This article concentrates on arrays in .NET and how you can work with arrays using C# language. Article also covers the Arrays class and its method, which can be used to sort, search, get, and set an array items.
  • Windows Forms Printer Selection ListJul 30, 2002. In this example we will create a sample windows form containing a combo box which will list the printers installed on the machine on which the program runs. The default printer for the machine is set as the default selection in the combo box.
  • Customizing Default Project SettingSep 26, 2002. "How do I change the default exe name of my project?". I received this question in an email.
  • 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.
  • ImageCanvas Web User Control for ASP.NETDec 31, 2002. Most of you must have seen picture box control of windows forms. We can set image of picture box control and control will render that image in form.
  • C# Versions of Java's StringTokernizerJan 13, 2003. Here is another C# version of the Java StringTokenizer Class from the version posted August last year on your site. Given a string and a set of delimiters, the class return an enumeration of substrings based on the delimeters passed in.
  • 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.
  • Querying COM+ through Web ServicesMar 12, 2003. The most COM+ common administrative tasks (creating a COM+ application, installing/deleting a component, setting a component attribute) can be accomplished manually with the Component Services administrative tool from Management Console.
  • Accessing COBOL Properties with C#Apr 02, 2003. This article will review a new option for exposing those assets via the use of Properties.
  • Dynamically Setting Properties of a Class from a DatabaseMay 12, 2003. This example demonstrates a powerful feature of Reflection that will allow you to dynamically set the values of a class.
  • Hard Coding Pape Size during PrintingJul 14, 2003. Every time I set up a new Windows printer I spend a few minutes going through every bit of the printer properties making sure that every bit is set to A4. The code discussed in this article shows, how you can do it programmatically.
  • EggTimer in C#Aug 26, 2003. This simple timer app will count down from whatever value is set in the textbox.
  • Late Binding With ReflectionOct 20, 2003. Component based technology has done great things for software development, allowing reuse and leading to better-written code that separates subjects and entities into distinct components.
  • Masked TextBox ControlJan 26, 2004. This Masked Edit TextBox intelligent user control enhances the function of TextBox control, which can mask the Date, IP Address, SSN, Phone number, digit, decimal and check the validation, automatically set delimit location.
  • Code Access SecurityFeb 06, 2004. Code Access Security represents a fundamentally different way of controlling access rights to protected resources. Traditionally, permissions such as access to the file system, databases or network were allocated based on characteristics of the user. All processes executed by the user would assume an equivalent set of permissions.
  • Understanding SQL Server Yukon Service BrokerFeb 25, 2004. The new version of Microsoft SQL Server™ "Yukon" comes together with a set of technologies capable of enlarging the horizon for database applications. One of the most remarkable technologies is the Service Broker that makes it possible to build database-intensive distributed applications. In this article we explore the core concepts of the Service Broker and show how to use its potentialities to build applications with message interchanging.
  • Setting Ink Overlay Properties in Tablet PCJun 02, 2004. In this article, I will write an application that allows us to set the Ink Overlay properties dynamically based on the values selected by the user.
  • Tablet PC Ink Editing Modes - Select and Delete InkJun 25, 2004. In my previous articles, I discussed how to use Ink and set its properties to draw on a Windows Forms and Windows controls. In this article, I will discuss some more features of Tablet PC Ink including selecting and deleting ink, Ink collection, and Ink object.
  • Using Property Grid in C#Jun 30, 2004. Property Grid control is one of the control we deal with all the time when writing UI applications. This article and attached source code shows how to use the Property Grid control in your applications.
  • Build a .NET Solution or Project from the Command Line Sep 27, 2004. Devenv allows you to set various options for the integrated development environment (IDE) as well as compile, build, and debug projects from the command line.
  • Bulk Data Transactions using OpenXMLOct 13, 2004. OPENXML is a new function added to SQL Server 2000 that provides a rowset view over an XML document. Since a rowset is simply a set of rows that contain columns of data, OPENXML is the function that allows an XML document to be treated in the familiar relational database format. It allows for the passing of an XML document to a T-SQL stored procedure for updating the data.
  • Passing Values between User Controls and ASPX PageJan 20, 2005. This article is for beginners who are learning. NET. This will be really helpful for them. Beginners will be wondered how to pass values between User Controls and ASPX page .In this article I have listed some of the ways through which you can access and set the User control values in an ASPX page.
  • Posting to another .aspx using ASP.NET Mar 19, 2005. ASP.NET wont allow to post back to another aspx page. It will post back to itself. If you specify action attribute it will ignore it. If you omit the method attribute, it will be set to method="post" by default.
  • Biology Inspired Computing Work in C#Mar 29, 2005. Biology teaches us a set of rules defined by nature that have evolved over millions of years. So, if you want to put intelligence into something simplifying the world around you into basic rules can give you a big head start.
  • Enterprise Library 1.0Apr 02, 2005. Enterprise Library is a set of tested, reusable application blocks that address common problems developers face when developing enterprise-based applications.
  • Creating Reports in C# using Crystal Reports with Xml data DefinitionsMay 22, 2005. This article explains how to extract data into a Crystal Report created outside a C# project using xml data definitions and data sets.
  • How to Maintain a CodeGroup in Security Policy at Runtime?Jul 05, 2005. Whenever protected resources are accessed by an assembly, it’s permissions are determined by the code access security system of CLR. Each permission set granted to an assembly is based on the assembly's evidence (such as its URL or publisher certificate, strong name), which in turn is based on configurable security policy.
  • ASP.NET Session StateSep 21, 2005. Session state is nothing more than memory in the shape of a dictionary or hash table, e.g. key-value pairs, which can be set and read for the duration of a user's session.
  • Windows Forms 2.0 MaskedTextBox ControlNov 10, 2005. The MaskedTextBox control is a TextBox with mask feature, which allows you to set the format of the data of TextBox such as zip code, date, time, social security, and phone number.
  • Manage and Administer ASP.NET Web Sites in Visual Studio 2005Nov 16, 2005. ASP.NET Configuration Wizard is a new feature available in Visual Studio 2005, which takes care ASP.NET Web Application configuration and deployment problems and allows developers to set Web application settings using a visual interface.
  • ADO.NET Enhancements in .NET Framework 2.0 for SQL Server Data Provider: Part IJan 04, 2006. ADO.NET 2.0 includes enhancements for SQL Server client application developers. Understanding these enhancements will help you design and implement effective client applications on the .NET Framework 2.0 platform
  • Security Setting for ExcelJan 04, 2006. To run the excel report, security settings are required for excel application because while working with the excel application we are going to use some of the classes for manipulating the data inside the file. This article shows how to grant access or rights to those files.
  • ADO.NET Enhancements in .NET Framework 2.0 for SQL Server Data Provider: Part IIJan 05, 2006. ADO.NET 2.0 includes enhancements for SQL Server client application developers. Understanding these enhancements will help you design and implement effective client applications on the .NET Framework 2.0 platform
  • Visual Guard for .NETJan 19, 2006. Novalys announces Visual Guard, which is aimed at setting up user’s profile and permissions for .net application (who is allowed to do what?). The tool easily integrates to any .net application and makes rights/permissions management easier thanks to its administrating console.
  • Set Web User Control Properties in Design Time Jan 27, 2006. This article will show that how can we initialize properties of web user control when we register it on some web page.
  • AJAX Pager controlFeb 01, 2006. After AJAX Repeater control next logical thing was to try and create paging control, a control which renders paging links when you set its properties like page count and page number, I have been using similar control in asp.net page so I decided to implement same thing with JavaScript.
  • Agile Development Checklist Feb 20, 2006. The purpose of this article is to define a set of ideal practices for an agile software development project. The idea for this article came to me after discussing CMMI-type processes and realizing that there is no agile equivalent.
  • DataSource controls in .NET 2.0Mar 04, 2006. In this article, we're going to learn how to connect a database for querying data and binding the result set to ASP.NET controls in a very easy way with no looping or control manipulation required, thus avoiding writing any data source code.
  • DataReader And DataSetMar 20, 2006. ADO.NET is part of Microsoft.NET which comprises a set of tools and object model for accessing a data source. The objects definition appears under the System.Data namespace. It allows applications to store, manipulate and retrieve data. In this article I’m going to talk about the two different objects for accessing data sources in two common contexts of your application: the connected and disconnected environment.
  • Data mining and SQL Server 2005Apr 11, 2006. Data mining is a key member in the Business Intelligence (BI) product family in SQL Server 2005 . Data mining is about analyzing data and finding hidden patterns using automatic or semiautomatic means, which can be explored for valuable information. It is about learning the characteristics of data set, which are not possible to discover by simple seeing.
  • Building applications with DLinq DesignerJul 01, 2006. DLinq designer is the visual design surface to create the entity objects and bound the controls to the dlinq objects with relationships. We can easily create the windows form using the designer. The developer need not take more time to design the User Interface. The designer itself suggests you the controls suitable for the selected fields.
  • TDO - Typed Data Object 2.0Aug 10, 2006. Tdo – Typed Data Object is a set made up of a base classes library and a .NET 2.0 source code generator for Data Layers based on Ms Sql Server 2000/MSDE/2005/EXPRESS databases and the .NET Framework 2.0.
  • Illustrates the use of the lock in multithreading applicationAug 17, 2006. Any application must have one or more processes. A Process is structural unit with a memory block and using some set of resources. For each executable, the Windows operating system creates some isolated memory block. This article tries to explain the use of lock basics of Multithreading in C# .Net.
  • Setting Enum's Through ReflectionSep 25, 2006. This article show to solve the problem of how to set an enum type in a dynamically loaded DLL.
  • Atlas: Floating Server Elements in ASP.Net 2.0Sep 26, 2006. In this article, we will see how easily Atlas allows setting up a server element as a floating element, which the end users of the web page can drag to any location in the web page.
  • User Confirmation before Deleting Items in ASP.Net 2.0Oct 12, 2006. This article describes how ASP.Net 2.0 allows setting client-side functions for Button controls through the use of the OnClientClick property and additionally, the event can be handled on server-side depending on the user response.
  • Bulk Copy Operations in ADO.NET 2.0Oct 23, 2006. Bulk copying of data from one data source to another data source is a new feature added to ADO.NET 2.0. Bulk copy classes provides the fastest way to transfer set of data from once source to the other.
  • Using ADO.NET concurrent model in Oracle databaseDec 07, 2006. The most popular instrument to access database data for .NET applications is ADO.NET. This set of components contains three main classes those are used to manipulate and store data: DataReader, DataSet and DataAdapter.
  • .NET SQL Authorization ManagerDec 15, 2006. .NET Sql Authorization Manager (AzMan x .NET 2.0) allows you to set Item-based permissions for Authorization Manager-enabled Microsoft.NET 2.0 applications. Storage reside on a MS Sql Server DataBase and can be administrated by a managed MMC 3.0 Snap-In.
  • Periodic Reminder App for the Windows TaskbarJan 17, 2007. This article features an application that allows you to set up a periodic reminder in your windows task bar. The application will show a balloon message periodically and optionally will produce a reminder beep.
  • Set up Secure Sockets Layer (SSL) using Digital CertificatesMar 06, 2007. This article explains how to secure an IIS Web application using SSL certificates.
  • Hiding the Date in a Date Time Picker ControlMar 26, 2007. This very short article will address an extremely easy way to hide the date value contained in a date time picker control. While the control contains no property that will allow you to hide the current date, nor to set the value of the control to null or an empty string, it is still possible, and even very easy to generate a date time picker control that does not display a date.
  • XAML TextBoxApr 10, 2007. XAML <TextBox /> element represents the XAML TextBox control. This article discusses how to create a TextBox and set its various properties such as background and foreground colors, setting size and positions, fonts, wrapping, scrolling, and input validations.
  • Multi-threaded Asynchronous Programming in C#... Event-Driven Architecture. Part IV.May 14, 2007. This is a continuation of a set of articles on Asynchronous multi-threaded development using C#. In this article we'll cover the basics of building an event-driven architecture which will be a basis for most multi-threaded apps. Also we'll cover async read/write operations on a file.
  • Scheduled WebService call using Windows ServiceJun 21, 2007. This Windows Service will call the web service at the Time mentioned in the App.config file. The Schedules can be made Monthly, Weekly and Daily (To be Set in the App.config file).
  • Distributed Transaction Coordinator/Control in asp.net (DTC)Jul 31, 2007. A transaction is a series of work perform as a single unit of work consistency and reliability of the system, can be achieved by binding a set of related operations together in a transaction. Here I will be discussing how we can run distributed application in a application.
  • Display Videos in ASP.NET 2.0 Aug 29, 2007. This article shall describe the construction of a custom control used to play video on an ASP.NET web page. The control is based upon the Windows Media Player active X control; with it you can add canned or live video to a web page by setting a property or two at design time, or from the ASP.NET page itself.
  • Generic Data Layer - One time creationSep 06, 2007. This article will explain how to create a generic data layer that can be used with very less amount of coding. It is a known fact that, most of the time we create applications for Create , Select , Update, Delete. And every time, we end up with writing similar set of code for every execution of our stored procedures.
  • George Steeve's .NET Tutorial ProjectsDec 09, 2007. This download contains a set of about 17 projects that are used by George to teach C# and .NET. George has been kind enough to share his hard work with the C# Corner Community. The download include some great multimedia samples that show you how to play audio, video, and speech using .NET and C#.
  • User interface on a mobile deviceDec 17, 2007. Article introduces Resco MobileForms Toolkit - set of Visual Studio controls, designed for mobile application development.
  • Where Did All the Designers Go! Jan 24, 2008. Software is one of the fastest paced industries in the business world. As quickly as software languages come and go, skill sets require constant learning. In trying to keep up with implementation aspects of software, did we somehow forget about the priority of creating a good design? This article describes how we came about with a void of software design skills in the programming world.
  • Chapter 1: Hello LINQFeb 06, 2008. This is an exert from Joseph C. Rattz, Jr.'s book Pro LINQ. Here you learn how to use Linq in your application and also depicts the benefits of using Linq.
  • Getting Started With F#Mar 22, 2008. This is the first in a series of articles discussing the F# programming language. I cover how to get your dev environment set up to develop with this awesome NET Framework language
  • F# Tuples and Binding (and more Binding)Mar 26, 2008. Binding in F# is similar to using variables in C# but there are some big differences. This article discusses one of the most used keywords in F# for binding ("let") and how it is different than setting a C# variable. I also cover the tuple F# data structure.
  • Configuration Sections; Introducing the Custom Configuration Section Concept: Part IApr 14, 2008. Custom sections of an ASP.NET Configuration File are customized sections that a developer configures by himself. In this case, the developer also sets their attributes and elements to suit special application needs in terms of settings.
  • Multiple Active Result Sets (MARS)May 12, 2008. This article gives you information about the Mars a feature supported by MSSqlServer 2005 and .Net 2.0/3.x, which is a feature to execute more than one query with one single connection to database.
  • 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.
  • Cascading Deletes in LINQ to SQLJul 03, 2008. This article will discuss alternative methods for performing cascading deletes using LINQ to SQL. Cascading delete refers to the action of removing records associated by a foreign key relationship to a record that is the target of a deletion action.
  • Database Server-side Applications.Extensions to SQLJul 09, 2008. Developers have struggled with the power and limitations of SQL. SQL is language oriented to manipulate data set, but enterprise applications always need to implement business logic that goes beyond the reach of SQL. This article is intended to illustrate the main constructs in these database management systems.
  • Silverlight 2 use ADO.NET Data Services to access dataJul 19, 2008. In this article will show how to perform CRUD (Create, Retrieve, Update, Delete) operations in Silverlight 2 using ADO.NET Data Services.
  • Generic Data Access using LINQ to SQL and C#Jul 22, 2008. This article discusses the construction of a generic data access layer built on top of a LINQ to SQL implementation.
  • Connect to MySQL database - via ODBC without using DSN: Part IIAug 11, 2008. In order to connect to on MySQL method, I propose this more flexible solution, thus, it enables us to customize the connection parameters in one hand, moreover, it enables us to choose which mode should we use. I mean, ADO connected mode using data reader or disconnected mode using data adapter and data set.
  • How to convert a simple DLINQ Query to a data set objectSep 01, 2008. In this article I will represent a trick of how to convert a given DLINQ query to a data set object in order to make use of it as a data source for several controls such as grid view, data grid view and so forth.
  • SQL Server Stored procedures and UDF within LINQ context-PartIISep 03, 2008. In the first article, SQL Server Stored procedures and UDF within LINQ context-Part I, I exposed 2 scenarios of how to deal with stored procedures using LINQ, in this second part, I will accomplish the task by demonstrating how to call a user defined function UDF using the same way adopted in the first part.
  • Checking previous instance (single instance) of an C# windows application, also setting MDI child form to a MDI parentSep 04, 2008. In this article I will describe how to check previous instance (single instance) of an C# windows application and also whether a MDI child is set to a MDI parent
  • Getting started with ADO.NET Entity Framework in .NET 3.5Sep 30, 2008. This article contains a very simple ADO.NET Entity Framework application to display and add the data to the database using ADO Entity Framework.
  • Getting started with ADO.NET Entity Framework in .NET 3.5 - Part IIOct 06, 2008. This article contains a very simple ADO.NET Entity Framework application to update and delete the data to the database using ADO Entity Framework.
  • Getting started with ADO.NET Entity Framework in .NET 3.5 - Part IIIOct 13, 2008. This article show us how to do conditional query and paging in ADO.NET Entity Framework.
  • Object and Collection Initializers Feature in C# 3.0 Oct 20, 2008. Object Initialization Expressions allows you to initialize an object without invoking the constructor and setting its properties.
  • Creating a Button with Silverlight 2 and Expression Blend 2Oct 31, 2008. This article shows how to create a Silverlight 2 application with Expression Blend 2, add a button to it and set its various properties.
  • Data Binding in Windows Forms 2.0Dec 02, 2008. This article is intented to illustrate the principles of data binding in .NET Windows Forms 2.0 as well as a description of data set and data-bound controls.
  • Distributed Database Management SystemsDec 17, 2008. I’m going to illustrate the principles of Distributed Database Management Systems through this article.

About Entity-Sets

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!
VSLive! Anaheim