C# Corner

Resources  
  • 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.
  • Text to HTML ParserApr 05, 2001. If you have been into developing Web Applications then you might have at many times experienced that when you display multiple lines of data from a database you loose the spacing or formatting between multiple lines of data.
  • Auto CompilerMay 05, 2001. This is a utility to make it easier to compile from the command line. One of the problems with using the command line.
  • Line numbering utility in C# and JavaMay 08, 2001. After reading this article Java programmers should be able to decipher and de-jargonize the .NET architecture and relate it with the proposed ECMA standard.
  • Line Numbering Utility in C# and JavaMay 08, 2001. This is the first of the series of programs I wish to write to help myself get a handle on C#.
  • C# Language Preprocessor DirectivesJun 05, 2001. This lesson contains C# language preprocessor directives including #if, #else, #define, #undef, #line etc with sample examples.
  • Space Invaders in C# and .NETDec 23, 2001. Yes, the classic arcade game has returned and is appearing in C# Corner complete with sound and authentic aliens and source code. It's not quite as good as the real game, but with a few adjustments it can get there.
  • Playing with 3-D Coordinate Space in C#, GDI+ and .NETJan 10, 2002. This article show to dealing with a 3-D Coordinate System.
  • Drawing Line Chart in ASP.NETJan 18, 2002. This sample using GDI+ encapsulated in a class to display a primitive line chart.
  • VS.NET Tools Intermediate Language Disassembler (ILDAM)Feb 06, 2002. "The ILDSAM tool parses any .NET Framework EXE/DLL Module and shows the information in a human-readeble format"
  • Calling Managed Code from Unmanaged CodeMar 11, 2002. One significant part of developers (including myself) are doing some kind of automation of Microsoft Office. So I will concentrate on opposing side of problem, how to use managed assembly from MS Office or VB script. In this article, I will discuss how to call managed code from unmanaged code.
  • Drawing rubber-band lines and shapesMar 12, 2002. I would like to show how we can draw rubber-band lines and shapes in GDI+ with just a few lines of code.
  • Space Remover UtilityMar 25, 2002. In this article, I want to show you how you can remove white spaces in a web page.
  • 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.
  • Validation Server Controls in Web FormsAug 05, 2002. When working with Web applications, developers need to write two separate codes using Java Script and VB Script to validate user inputs.In this article we are going to see, how we can reduce the programmers effort on coding, reducing the execution process time and simplify the code handling and less number of lines in the coding.
  • Client Server Multithreaded ApplicationNov 08, 2002. This is simple Client/Server (multi-threading) program that transfers data. Server can handle multiple clients.
  • Sorting using MultithreadingNov 13, 2002. This is simple multithreading application that sort integers values in an array.
  • 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.
  • Object Oriented: The Grownup Way to CodeSep 29, 2003. Back in my dark days of Procedural Programming, I remember someone giving me a problem, then banging out a few (hundred) lines of code, achieving my goal, and going on with my life. The next time a similar problem would arise, I’d rewrite, or in some cases, cut & paste my old code to achieve a similar, yet slightly different outcome.
  • Using the Tablet PC as a Flashing Restaurant Menu in C# and .NETJun 08, 2004. This is a simple application written for a restaurant using Tablet PC that allows you to list such things as lunch specials and have the colors on the board change randomly to produce an interesting flashing sign effect.
  • Line Count UtilityJun 12, 2004. Program returns count of code lines and file names in which code lines will be counted.
  • 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.
  • A Scheduled Application Launcher Service in C# and .NETOct 06, 2004. This an article is on launching scheduled tasks. Not quite as exciting as launching a spaceship into outer space, but…hey, even astronauts have to automate some of their day to day activities.
  • Building a Web Site using Visual Studio 2005Apr 13, 2005. This article gives you a glimpse of new features of Visual Studio 2005. In this article, you will see the power of Visual Studio and how easy it is to build Web sites using new controls without even writing a single line of code.
  • MouseStick Control.May 13, 2005. The attached source code is a MouseStick control written in C# and Windows Forms. The MouseStick control gets its name from the fusion of a joystick with a mouse. Think of the line in the MouseStick as a joystick that is controlled with your computer's mouse.
  • Space Invaders for C# and .NETJun 29, 2005. This is an update of the space invaders game posted on C# Corner 3 years ago for Visual Studio 2005. This version adds spiraling bombs and a ship lives indicator.
  • Introduction to ADO.NET 2.0 Data Source ControlsAug 19, 2005. ADO.NET 2.0 provides new data source and data-bound server controls, which allow developers to write full-fledged data-driven applications without writing even a single line of code. This article is an introduction to these new data source controls.
  • Creating a Simple WebPart Page and Use WebServer Controls as WebPartsJan 10, 2006. Portal web sites such as MY MSN and MSN Spaces, often organize their data into discrete units that support a degree of personalization. Information is organized into standalone parts [WebParts], and users can rearrange those parts to suit their individual working styles. Here we will see how to add web parts to a web part page.
  • Migrating Java RMI to .NET RemotingJan 16, 2006. .Net Remoting and Java RMI are mechanisms that allow the user to invoke method/methods in another address space. The other address space could be on the same machine or a different one. These two mechanisms can be regarded as RPC in an object-oriented fashion. This article describes how to migrate java RMI applications to .NET Remoting applications, with practical examples.
  • Access Command Line Arguments in C#Mar 27, 2006. This article shows how to access command line arguments in C#.
  • 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#.
  • Handling new line and carriage return with TextboxAug 08, 2006. This article shows how to handle newline and carriage return with Textbox while working with Databases.
  • Simple MP3 PlayerNov 20, 2006. So many people are asking how to play MP3 and WAV files that I put together this simple player. One button and six lines of code. Thats all there is.
  • Processing Command Line ArgumentsDec 27, 2006. This article describes an approach to processing multiple command line arguments.
  • Drawing Graphics Shapes in XAML Apr 12, 2007. This article describes the drawing model in XAML and how to draw various objects such as line, rectangle, ellipse, and paths using XAML.
  • Error handler for web applicationsMay 15, 2007. In this article I will describe the error handler for ASP.NET 2.0 applications, that is developed in a separate class library project . You can use it in any web application you want by adding a reference to the compiled dll assembly without writing many lines of code. The examples are written using C#.
  • On-line Address Book in ASP.NET 2.0May 25, 2007. This is an On-line Address Book project. This project is very useful to keep the record and addresses of person. Here in this project we can view all record, edit any record, delete any record, search a record and update any record. This project will be very useful to those who are new or going to his/her first ASP.NET project.
  • Separating the User Interface from your Working CodeJun 26, 2008. Your application’s user interface may be a Windows Form, a Web Form, or maybe just a command line. This article is about separating the user interface from the rest of your application’s code.
  • Drawing Shapes in WPF Jul 31, 2008. This article is an introduction to graphics programming in XAML and WPF. In this article, I discuss various graphics objects including lines, rectangles, ellipses, and paths and how to draw them using XAML and WPF.
  • GridView Examples for ASP.NET 2.0Sep 15, 2008. In this article, I am going to show how you can display and edit data in an ASP.NET 2.0 GridView control without writing a single line of code.
  • Line in SilverlightDec 09, 2008. This article demonstrates how to create and use a Line control in Silverlight using XAML and C#.
  • Ployline in SilverlightDec 11, 2008. A polyline is a collection of connected straight lines. This article demonstrates how to create and use a Polyline control in Silverlight using XAML and C#.
  • Polygon in SilverlightDec 15, 2008. A polygon is a series of connected lines which is a closed shape. A closed shape is a shape that has same start point and end point. This article demonstrates how to create and use a Polygon control in Silverlight using XAML and C#.
  • .txt file in multi line textbox in ASP.NET 2.0Jan 07, 2009. How will you display .txt file’s text in multi line textbox through ASP.NET 2.0?
  • SharePoint Quick Start FAQ: Part IJan 13, 2009. Below is quick start FAQ for people who are new to share point. We will warm up some theory in the first two articles and then do some practical on the same lines.
  • 19 Practical Points to be remembered while working on project/software CompanyFeb 11, 2009. This article will talk about some important points we should note while working with tight dead line project.
  • Line Chart in SilverlightFeb 28, 2009. This article shows how to create a line chart in Silverlight 2.0 using Silverlight Tooklit.
  • Financial Calculation using .NET: Part IIMar 23, 2009. In this article we will look how we can use “Microsoft.VisualBasic” namespace to do single line and double line depreciation calculation.
  • Hello C#Jul 22, 2009. In this article, you will know how to write a simple program in C# using a text editor and compile if from the command line.
  • Creating Cursor in form of ELLIPSE in C# Jul 30, 2009. This article shows how to easily create custom cursors in C#.
  • ViewBox in SilverlightAug 04, 2009. Silverlight ViewBox control defines a content decorator that can stretch and scale a single child to fill the available space. This article demonstrates how to use a ViewBox control.
  • Isolated storage space in SilverlightAug 26, 2009. Isolated storage is a mechanism which, provide data storage isolation and safety by defining standardized ways of associating code with saved data. Standardization provides some more benefits as well.
  • Comments in C#Aug 27, 2009. In this article I will exlpalin about comments and there usage in code.
  • COBOL: It's EverywhereSep 03, 2009. "COBOL is Dead!"..."COBOL is dying"... "COBOL won't last another 5 years"...how many times have we heard these lines or similar in the past 20 years? Guess what... Ain't true!
  • Best Practice No 4:- Improve bandwidth performance of ASP.NET sites using IIS compressionSep 16, 2009. Bandwidth performance is one of the critical requirements for every website. In today's time major cost of the website is not hard disk space but its bandwidth. So transferring maximum amount of data over the available bandwidth becomes very critical. In this article we will see how we can use IIS compression to increase bandwidth performance.
  • Create Windows Application in C# from Command Line Oct 31, 2009. The article explains how to create /compile a Windows Forms application program from command line using C# compiler without using Visual Studio IDE.
  • Hello C#Nov 05, 2009. This short article is based on the classic “Hello, World” sample program familiarizes you with the language syntax and introduces the command line compiler.
  • Drawing Graphics ShapesNov 05, 2009. In this article I will explain about Drawing Graphics Shapes in GDI+.
  • C# Command-Line Compiler OptionsNov 08, 2009. In this article let's address each of the compiler options available in C#.
  • Basic GDI+ ObjectsNov 09, 2009. In this article we will discuss some basic GDI+ objects, such as the color-point-, and rectangle-related structures provided by the .NET Framework library. Understanding these structures is very important because they are used throughout.
  • Charting in SilverlightNov 10, 2009. This tutorial demonstrates how to use charting applications in Silverlight using Silverlight Toolkit. First you will learn how to get started with the Silverlight Toolkit and then create bar chart, line chart, pie chart, column chart, and scatter chart in a Silverlight application.
  • Draw Line in C#Nov 16, 2009. In this article I will explain you how to draw lines in GDI+.
  • Creating a Line Chart Application in GDI+Nov 20, 2009. In this article I will explain how to create a line chart in GDI+.
  • Line Chart in WPFNov 26, 2009. This article demonstrates how to draw line charts using WPF and C#.
  • Charting in WPFNov 28, 2009. This tutorial demonstrates how to draw various charts including line chart, bar chart, column chart, area chart, scatter chart, and pie chart using WPF and C#.
  • Colors, Fonts, and Text in GDI+Dec 16, 2009. In this article I will explain about Colors, Fonts, and Text in GDI+.
  • Attribute or Styles in GDI+ Dec 21, 2009. In this article I will explain about Attribute or Styles in GDI+.
  • The GDI+Painter ApplicationJan 06, 2010. In this article I will explain about the GDI+Painter Application.
  • Line in WPFFeb 03, 2010. The Line object represents a line shape and draws a line between two defined points. This article demonstrates how to create lines in WPF and XAML.
  • Path in WPFFeb 03, 2010. A graphics path is a set of connected lines, curves, and other simple graphics objects, including rectangles, ellipses, and text. This article demonstrates how to create and use paths in WPF and XAML.
  • Polygon in WPFFeb 04, 2010. A polygon is a series of connected lines which is a closed shape. A closed shape is a shape that has same start point and end point. This article demonstrates how to create and use a polygon in WPF using XAML.
  • Polyline in WPFFeb 04, 2010. A polyline is a collection of connected straight lines. This article demonstrates how to create a polyline in WPF and XAML.
  • Drawing Other Graphics Shapes by Applying Cap and Dashed Line Styles in GDI+ Feb 08, 2010. In this article I will explain about Drawing Other Graphics Shapes by Applying Cap and Dashed Line Styles in GDI+.
  • Compile DLL using Command Line C# CompilerFeb 17, 2010. This article show how to compile dll file in c# using command line C# Compiler of .Net.
  • Working with Command Line Arguments in C#Feb 17, 2010. This article will explain you about how to work with command line argument.
  • Getting and Setting Line Caps and Styles in GDI+Mar 17, 2010. In this article I will explain about Getting and Setting Line Caps and Styles in GDI+.
  • Customizing Line Caps and Line joins in GDI+ Mar 18, 2010. In this article I will explain about Customizing Line Caps and Line joins in GDI+.
  • Drawing Other Objects with Line Caps and Styles in GDI+ Mar 19, 2010. In this article I will explain about image class methods and properties in GDI+.
  • Alternate line Colors in Reports Using Crystal ReportsApr 15, 2010. Sometimes when we have a big reports displaying heavy textual information, one technique to visualize data in a consistent way is to shade line in alternate colors. In this article, I will show how Crystal Reports enables this technique very easily.
  • Using StackPanel Silverlight ControlMay 04, 2010. The StackPanel control is a simple layout panel that arranges content into a single line that can be oriented horizontally or vertically (the default).The StackPanel control allow us to stack objects one on top of the other, or next to each other.
  • 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.
  • How to create Line Graph and Bar graph on same parameters in asp.netJun 03, 2010. We can use GDI+ to draw chart components in C# or VB.NET language in memory and once the components are drawn in memory, we can save the drawing in an image on the Web server. Once the image is saved, we can display this image in an ASP.NET page using any Image tag or image control.
  • How to get System Environment information in WPFJun 07, 2010. This article demonstrates how to get system environment information like Operating System,.NET Version, Machine Name, Username, Domain Name, Directory Name, Command Line using wpf.
  • Your First Graphics Web Application in GDI+Jun 15, 2010. In this application we will draw a few simple graphics objects, including lines and rectangles.
  • Drawing a Line Chart in GDI+Jun 28, 2010. In this article you will learn how to draw a Line Chart in GDI+.
  • Select Method carefully in GDI+Jul 14, 2010. In this article you will learn how to Select Method carefully in GDI+.
  • Basics of Data Communication: Part 3Jul 15, 2010. This article will explain, Data Transmission, configuration, Time Domain Concepts, Frequency Domain Concepts, Why Digital Communication, Bandwidth, Data Rate, Channel Capacity, Error Rate, Noise, Nyquist Sampling Rate, Shannon Channel Capacity, Line Coding, Modem and Digital Modulation etc.
  • MSChart : How to Draw a Line or Multiple Line ChartsAug 19, 2010. This article shows how to draw a line chart or multiple line charts using MSChart.
  • Silverlight Invaders - Designing Games in Silverlight 4.0 Part IAug 26, 2010. Silverlight Invaders is based on the classic space invaders game. This article will step you through some of the techniques for creating a 2D first person shooter game using Silverlight 4.0
  • Using Tools and Windows in Expression Blend 2.0Sep 14, 2010. This article is a basic introduction of Expression Blend 2 and how to use various tools in Expression Blend. I am using Expression Blend version 2.0.
  • Export DataSet to ExcelSep 15, 2010. Exporting to single sheet excel file is easier and it requires only few line of codes. Exporting to Multiple sheet is little bit complicated and it requires little bit of extra effort. Mostly we will go for third party controls or dlls to achieve that. Here is the simple way to export your dataset to multiple sheets in an Excel file.
  • MSChart - Drilldown Charts: Part IIISep 21, 2010. This part of article will helps in doing drilldown on single Chart only. There is no change in logic, only rearrangement of code lines and also a button introduced to plot master chart again back from .xml file after drilldown.
  • Memory Handling on NULL Values Using Sparse ColumnsOct 11, 2010. Sparse columns is a new feature in SQL Server 2008. Thr feature enables us to store null values effectively. Ideally, if the column is NULL, then the data won't be stored in the database and it's cost effective solution to save the space. If your table has more Null values, we can use this solution.
  • One Line Lambda-Lookup list of Lambda Expressions for common scenariosDec 08, 2010. I have observed that Lambda Expressions got good steam among developers. It helps us in reducing lot of code and save time.
  • Two-dimensional computer graphics or vector graphics in Silverlight for Windows Phone 7Dec 20, 2010. Vector graphics is the visual realization of analytic geometry. Two-dimensional coordinate points in the form (x, y) define straight lines and curves. In Silverlight, these curves can be arcs on the circumference of an ellipse or Bezier curves, either in the customary cubic form or in a simplified quadratic form.
  • Working with Isolated Storage in SilverlightFeb 04, 2011. Isolated storage gives you access to a small segment of hard-disk space, with certain limitations. For example we don't know exactly where our files will be stored.
  • LightSwitch Desktop ApplicationFeb 12, 2011. In this article, we shall see how to create a LightSwitch Desktop application. The LightSwitch applications are introduced for creating a line of business applications, which are more data-centric.
  • Creating an Entity Data Model (Entity Framework 4.0)Feb 22, 2011. The ADO.NET Entity Framework is a new data access platform from Microsoft for writing .NET applications. It is a set of technologies in ADO.NET that helps fill in the space between object-oriented.
  • Basic PDF Creation Using iTextSharp - Part IIIMar 11, 2011. In this article series I use a web application to show how to easily create a valid PDF document with just a few lines of code, using the tool iTextSharp which is a free .NET component downloadable from http://sourceforge.net/projects/itextsharp/

About Line-spacing

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