C# Corner

Resources  
  • Generate Unique Number in C#Jan 09, 2000. Generate a unique number using random class and display it on the console.
  • Printing in C#Jan 26, 2000. An application show you all Printing, Print Preview functionality using C#.
  • Printing in C#Jan 26, 2000. This sample shows you how to print a text box contents in C# and .NET.
  • GDI+ Tutorial for BeginnersDec 26, 2000. GDI+ is next evolution of GDI. In Visual Studio .NET, Microsoft has taken care of most of the GDI problems and have made it easy to use.
  • Complex Numbers ClassMar 20, 2001. This small example demonstrates using some of the interesting language elements of the C# language.
  • 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#.
  • strnicmp equivalent in C#Aug 07, 2001. C# equivalent strnicmp function in C language. It accepts two input strings along with the number of positions of chars to compare.
  • 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.
  • 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.
  • Simple Game Developed in C#Sep 03, 2001. This article contains the code for a simple game developed using csharp. This game is all about arranging the shuffled numbers in ascending order.
  • Number to Currency ConvertorSep 03, 2001. The attached Num2Cur.cs file converts number to currency up to 999,999,999,999.9999 i.e (999 billion).
  • Sorting, Searching and some other useful programsSep 07, 2001. Here are the some useful programs including many search algorithms, sort, palindrome, fibonacci...
  • Understanding Structures in C#Oct 23, 2001. A structure in C# is simply a composite data type consisting of a number elements of other types.
  • BitWise Operations in C#Nov 01, 2001. C# has lots of flexibility over manipulating with bits. Before I start explaining about bit wise manipulation I would like to give some inputs on binary operations.
  • Printing a Ruler using C# and GDI+Nov 12, 2001. If you misplaced your ruler, here's an application that will create one for you on your printer!
  • Debugging Techniques in C#Dec 04, 2001. Debugging GUI applications for me mostly consists of printing out debug statements in the form of a dialog box with some text.
  • Musical Teacher Web ServiceMar 04, 2002. A number of people / organizations have developed web services that are available for free to use.
  • Printing Invoices using C# and .NETMar 18, 2002. This program can stand improvements but it will get you started in creating an invoice and printing it to the printer.
  • Exocortex.DSP - A C# Complex Number and FFT LibraryApr 08, 2002. Shows how to convert an image from a spatial representation (i.e. picture on the left) to a frequency representation (picture on the right) using a 2D fast Fourier transform.
  • Gene Expression Programming (GEP) in C# and .NETApr 11, 2002. Gene Expression programming (GEP) is a subset of Genetic Algorithms, except it uses genomes whose strings of numbers represent symbols. The string of symbols can further represent equations, grammars, or logical mappings.
  • Multithreading Part 3: Thread SynchronizationApr 11, 2002. The .NET framework provides a number of classes and data types that you can use to control the access to shared resources. Thread synchronization refers to the act of shielding against multithreading issues such as data- races, deadlocks and starvation.
  • Interrogating Your Printer Queues with WMIMay 20, 2002. In response to a newsgroup query here is the code needed to view the printer queues on your system.
  • C# Style-SheetMay 31, 2002. This article contains a C# style-sheet for the GNU a2ps print utility. The style-sheet keywords, comments, preprocessor directives, and [] style attributes are pretty-printed in the typical a2ps fonts.
  • Editable GridView Control in C# and .NET - Part-III Printing the GridViewJun 24, 2002. In our last two articles, we talked about how to create an editable GridView and how to make it persistent in XML.
  • Evaluating Neper's Numbers in C#Jul 22, 2002. One of the most interesting number in mathematics is the Neper's number : "e".
  • 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.
  • 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.
  • Working with COBOL Data Groups in C#Sep 11, 2002. In this article we will begin with a C# console application calling a COBOL DLL file. The C# application will pass it a number of occurrences to create in the table (much like a user requesting a specific number of months to report on).
  • Chart RecorderOct 09, 2002. This is chart recorder program developed using C# and GDI+.
  • 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.
  • Consumer/Producer Multithreaded ProgramNov 04, 2002. This is simple multi-threading program that adds and removes elements in an ArrayList. Producer button will creates a producer thread that adds elements in to the ArrayList. The maximum number of elements can be added to this ArrayList are 100 elements and the producer thread has to wait until the consumer thread/threads (creates by pressing consumer button) removes elements from the ArrayList. Then Producer thread starts to add more elements to the ArrayList.
  • More AI...(GEP) Gene Expression Programming in C# and .NETNov 04, 2002. Gene Expression programming (GEP) is a subset of Genetic Algorithms, except it uses genomes whose strings of numbers represent symbols.
  • Filling out your 1040EZ Tax Form in .NETJan 21, 2003. Since the 1040EZ form is only a single page, I thought it would be fun to create a Window Form application that helped into the form. This program will allow you to fill out most of the fields and perform the calculations on certain fields as well.
  • Music Editing Program in C# and .NETJan 28, 2003. This program will create music from a file of letter-coded notes. It will also print and print preview the music.
  • Telnet Scripting in C#Jan 28, 2003. This library, written in C#, expands on some telnet code from various other sources, presenting the caller with a number of functions handy for scripting telnet sessions (i.e. SendMessage, SendAndWait, WaitAndSend, WaitFor).
  • How To: Printing Form Controls in C# and .NETMar 06, 2003. The other day a user asked me how to print out a form. I suggested they use my Form Capture article which catches the bitmap that the form is in by using bit belting commands from the old windows SDK.
  • Mersenne Twister Random Number GeneratorApr 01, 2003. The attached source code is the C# implementation of the Mersenne Twister algorithm, developed by Makoto Matsumoto and Takuji Nishimura in 1996-1997.
  • How To Print a Data Grid in C# and .NETJun 04, 2003. I wrote this article in response to the question, "How the heck do I print out a DataGrid and its contents
  • Part I: Simple Color Syntax Code Editor for PHP written in C# and .NETJun 18, 2003. The second part of this article shows how to print out the contents of a RichTextBox control.
  • 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.
  • 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.
  • Simple Barcoding In C#Sep 08, 2003. This article provides a simple way to produce Code 3 of 9 Barcodes through C#. While there are many third-party controls that offer this functionality, it is just as simple to integrate your barcodes using readily available barcode TrueType fonts.
  • In Depth ASP.NET using ADO.NET: Part IIINov 18, 2003. In this article we will discuss a number of ways to retrieve, show, and update data with ASP.NET forms using ADO.NET. Also, we will have a clear idea about the most common server controls in ASP.NET.
  • In Depth ASP.NET using ADO.NET: Part IINov 18, 2003. In this article we will discuss a number of ways to retrieve, show, and update data with ASP.NET forms using ADO.NET. Also, we will have a clear idea about the most common server controls in ASP.NET.
  • In Depth ASP.NET using ADO.NET: Part IVNov 18, 2003. In this tutorial we will discuss a number of ways to retrieve, show, and update data with ASP.NET forms using ADO.NET. Also, we will have a clear idea about the most common server controls in ASP.NET.
  • In Depth ASP.NET using ADO.NET: Part VNov 18, 2003. In this tutorial we will discuss a number of ways to retrieve, show, and update data with ASP.NET forms using ADO.NET. Also, we will have a clear idea about the most common server controls in ASP.NET.
  • 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.
  • MathGraph in C#Jan 26, 2004. This article and the sample code shows you to draw and print a math graph using GDI+ and C#.
  • Configuring Publisher Policy FileFeb 20, 2004. Versioning in the Microsoft .NET Framework is managed at the assembly level and is only used when locating strong-named assemblies. By default, the common language runtime loads the assembly whose entire version number matches the version number in the calling assembly's metadata.
  • Combine Multiple Streams in a Single .NET Framework Stream ObjectApr 11, 2004. This article represents a simple Stream class whose data is based on the number of another .NET Framework streams.
  • How to Export Crystal Report in ASP.NETMay 06, 2004. When using Crystal Reports in ASP.NET, the CrystalReportViewer control does not have the export or the print buttons like the one in Windows Form. We can still achieve some degree of export and print functionality by writing our own code to handle exporting.
  • Evolving Register Network using Genetic Algorithms in C# Jun 23, 2004. Genetic Algorithms are powerful AI tools because they can evolve through trial and error and converge into a solution. In this article we will use genetic algorithms to come up with an analog solution.
  • Evolving Numeric Series using Genetic Algorithms in C#Jul 27, 2004. If you ever browsed around the book store, you'll notice these puzzle books or IQ test books and some of the books contain questions asking you to complete a series of numbers.
  • Remote Data Access LayerAug 24, 2004. The attached source project is a data access layer library and the main idea of developing such a DAL is to separate the database execution from the client/end user and maintain it on the server side, there by reducing the number of direct simultaneous connection to the SQL Server.
  • 3D Real-Time Stock Exchange Quote Stream Ticker in GDI+ and C#Oct 04, 2004. This article represents 3D Real-Time Stock Exchange Quote Stream Ticker version 1.0. The big option here is internal email-alert control with built in POP3 and SMTP protocols. This control starts when some condition is execute. You can save current quote in some graphics format and print it.
  • Generating Random Number and String in C#Nov 19, 2004. The Random class defined in the .NET Framework class library provides functionality to generate random numbers. This article shows you how you can use this class to generate random numbers and strings and even combination of both.
  • Generating Random Number in the ArrayDec 17, 2004. This article shows how to generate random number in an array using C#.
  • Stack in C#Feb 22, 2005. Stacks are one of the common data structures used in the software world, which follows the First In Last Out paradigm. Stacks are used in various mathematical functions like Towers of Hanoi, finding Fibonacci Sequence , Factorial of a number to name a few.
  • Floating-Point in .NET Part I: Concepts and FormatsApr 18, 2005. The first in a three part series, this article introduces the basic concepts of floating-point arithmetic: number formats, accuracy and precision, and round-off error.
  • AI: Population based Incremental Learning in C# and .NETMay 22, 2005. In this article I would like to discuss another offshoot of the genetic algorithm called Population Based Incremental Learning (PBIL).
  • Notepad.NET - Printing a Multiline Textbox in C# and .NETJul 31, 2005. Notepad.NET is a file text editor that allows you to edit multiple files at the same time. It also has a few nice features not included in notepad, such as print preview and a most recently used file list. This article describes how printing is performed in this utility.
  • How do I Generate Random Number in C#?Oct 05, 2005. This code snippet shows how to you generate a random number between a range in C#.
  • AI: Using the Compact Genetic Algorithm to Compute Square Roots in C#Oct 09, 2005. This article describes the Compact Genetic Algorithm (cGA) and how it can be used to calculate the square root of a floating point number.
  • Working with Drawing ClassOct 27, 2005. This article gives an overview to work with drawing and printing class. It explains how to use various methods in the drawing and printing class.
  • 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.
  • Numeric TextBox for ASP.NETDec 06, 2005. An article on how to allow users to enter only numbers in a TextBox.
  • Generic 'T, K' Database ComponentDec 17, 2005. I have written a C# 2.0 (Visual Studio 2005), Generic <T, K> Database component, The component has simplified the architecture and the implementation by allowing me to keep the number of overloaded methods to a minimum.
  • A Loader and Game Pad for Playing SudokuJan 13, 2006. This C# application will allow you to load existing Sudoku games, manually create your own games, save, print, and check Sudoku puzzles, and more. The article also describes how to use the XmlDocument class to persist Sudoku templates and games in progress.
  • 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.
  • Counting Words in C#Feb 14, 2006. This article shows a function that returns number of words rather than number of characters.
  • Gym Exercise Tracker in C# and .NET - Printing the DataGridViewMar 05, 2006. This article demonstrates an Exercise Tracking Program in C# that you can use to track your daily exercises. It uses the DataGridView and an Access Database to display exercise data. The program also let's you print out your daily routine.
  • Solving Polynomial Equations with Complex Roots using Genetic Algorithms in C#Apr 09, 2006. This article features a program in which the user can enter a polynomial equation and it will use GAs to determine the complex roots.
  • Merging data into single table from multiple tables (resultsets)May 15, 2006. This article shows how to reduce the number of trips to improve performance by merging data into single table from multiple tables (resultsets).
  • Random isn't Really Random -- C# Random Number GenerationJul 18, 2006. This article covers overriding the System.Random object in order to produce better random numbers. The project file contains a library of eight commonly used random number generating algorithms, the best of which is the Mersenne Twister algorithm.
  • Tip: How to Print a CheckBox for a Boolean Column in Crystal Reports?Jul 21, 2006. Crystal Reports does not provide a CheckBox conrol. This small tip shows how to create a CheckBox for a boolean column in Crystal Reports.
  • Tip: How to Print a Crystal Report Programmatically in ASP.NET?Oct 16, 2006. You can print a Crystal Report using print option of Crystal Report Viewer. However, there are occasions when you want your application to print a report direct to printer without viewing the report in Crystal Report Viewer.
  • Crystal report with Dynamic ColumnNov 03, 2006. The objective of this article is to provide a process which can be followed to develop a crystal report with dynamic columns using parameterized column fields and formula fields. Before going for this the developer has to decide the maximum number of columns he/she has to display and as per the no. of columns the size of the paper. The developer can define the size of the paper by selecting Printer Setup in File menu.
  • How to use Genetic Algorithm for Traveling Salesman ProblemDec 20, 2006. TSP is a famous math problem: Given a number of cities and the costs of traveling from any city to any other city, what is the cheapest round-trip route that visits each city exactly once and then returns to the starting city? We use the Genetic Algorithm to solve the TSP problem as a C# programing example .
  • Restricting User InputDec 28, 2006. This article describes an approach to restricting the user’s input to letters only, numbers only, letters or numbers only, and special characters only. The approach is simple to implement and can be used whenever it is necessary to restrict a user’s response to instances where it is necessary to capture information from the user into a form’s text box control.
  • Obtain System Information using WMI CallsApr 06, 2007. This article shall describe an approach to using Windows Management Instrumentation (WMI) calls to obtain system information.
  • XAML Layout using the Panel ClassApr 12, 2007. This article describes how to use the DockPanel element to achieve standard layouts in XAML. While there are a number of interface elements that can be used to position controls in your application, DockPanel provides one of the easiest mechanisms for defining scalable layouts.
  • Managing printing in Windows ApplicationsMay 28, 2007. This article describes the basics of enabling printing in windows application using C# and .net 2.0.
  • 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.
  • Lotto Program in C#Jul 16, 2007. It is a small Lotto-Program which can help you fill your lotto ticket. It is written in C#.NET 2.0 by using Visual Studio 2005.
  • WEB farm - Load Balancing in Asp.netJul 27, 2007. The concept behind the web farm is that a number of different web sites share pooled resources. They typically share a common front-end dispatcher to perform load control and distribute customer requests. They share the multiple web servers themselves.
  • Web based colour tool for .NETOct 02, 2007. The .NET Framework provides us with over 100 colours to use within the System.Drawing namespace. In order that we know exactly what all these colours look like here is a simple web based tool that uses Reflection to loop through all the colours with the System.Drawing.Color struct and print them to the page.
  • Distributed Databases in SQL Server 2005.Nov 20, 2007. An increasing number of applications require access to multiple databases located at different sites. A distributed database system allows applications to access database locally and remote transparently.
  • Filter Data to Display in a Crystal Report Viewer ProgrammaticallyDec 10, 2007. This article describes how to filter data to display, export or print programmatically using the selection formula property of the crystal reports viewer control.
  • Automatic Reading and Verification of Microsoft Word document in C# using Aspose.WordsJan 17, 2008. Student Course Registration and Verification automatically reads the Roll Number slips in a Microsoft Word document. It parses the Microsoft Word document and then makes corrections if required. It also saves the document at the specified location.
  • Printing Windows Form in C#Feb 01, 2008. This article shows how to print a Windows Forms in C# at run-time.
  • Assessing Dates of Birth Using C#Aug 20, 2008. This article describes an approach to assessing the difference between a specified beginning and end date. The example was written in the context of comparing a birth date to a specific end date but the same approach could be used to calculate the number of years, months, and days between a specified start and end date.
  • Tracking Clicks by IP Address Using C# and XMLNov 20, 2008. This is a very simple and easy article, which gives an idea for track the IP address and for getting the number of cliks from a particular system.
  • DataList Custom Paging in ASP.Net Using C#Jan 11, 2009. This article describes DataList Paging with Next, Previous, First and Last page access functionality. A numbers list is also displayed for accessing pages faster.
  • Button Control in WPFFeb 02, 2009. This tutorial demonstrates how to create and use a Button control in WPF using XAML and C#.
  • Uploading Multiple Files in ASP.NET 2.0: Part IIMar 27, 2009. In ASP.NET 2.0, the FileUpload control enables the users to upload the files from your web pages. Here, I am going to show you, "how can you upload multiple file on a single button click in ASP.NET 2.0." Here, in the same article I am adding one more functionality, i.e. the user can get the right to upload any number of images by clicking on Add button.
  • Project Management Schedule Management FAQ seriesApr 13, 2009. In this article we will run through a quick FAQ for schedule management of software projects.
  • Web Paging Navigation ControlMay 18, 2009. WebPagingControl navigation control contain page numbers ,next,back,first,last to navigate in datalist the project cotains web page to test the control working with ajax
  • C# 4.0: Named ParametersJun 15, 2009. C# 4.0 has introduced a number of interesting features which includes Optional Parameters, Default Values, and Named Parameters.
  • How to improve your LINQ query performance by 5 X times ?Jul 17, 2009. LINQ has been criticized by many early adopters for its performance issues. Well if you are just going to drag and drop using DBML code generator I am sure you will land up in to mess. Try doing this make a simple LINQ to SQL project using DBML and see your SQL profiler, I am sure you will never like to touch DBML code generator again. In this article we will first look in to how LINQ queries are executed, and then we will touch base on how compiled LINQ queries can help us improve our application performance at least 5 times. My numbers can be 10% up and down as I had come to that figure using my environmental situations.

About Print-Fibonacci-Numbers

NA

SPONSORED BY

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