C# Corner

Resources  
  • Meal Scheduler in C#May 04, 2000. This service reminds you when it time to eat your lunch, BF or dinner.
  • Graphics Animation SampleMay 16, 2000. After finishing a text program (lottery) its time for some fun. Everytime a have to work with a new language.I write a small program to bounce some balls in a box.
  • Tutorial: Creating C# Class Library (DLL) Using Visual Studio .NETDec 09, 2000. This step-by-step tutorial shows you how to create a class library (DLL) in Visual Studio .NET.
  • ColorDialog : How to use?Dec 21, 2000. Changing color of your Window and its controls is a piece of cake in C# using ColorDialog class.
  • 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.
  • Get a database table propertiesJan 22, 2001. Get a table properties such as column names, types etc using DataColumn and DataTable.
  • Display data in a Data GridJan 22, 2001. The sample example show you how to use Data Grid to display data in a grid format.
  • PaintBrush in C# - IIJan 30, 2001. This is a PaintBrush Application. In this Paintbrush user can draw some images and he can save the images in a persistence storage and later time can retrive the images.
  • Interactive ButtonsFeb 26, 2001. By using control properties, you can give your program an interactive look as you see on web sites.
  • Reflection in .NETFeb 26, 2001. Refelction is the mechanism of discovering class information solely at run time. Wondering where it would be useful?
  • 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?
  • 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.
  • 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.
  • A Lottery Program in C#May 05, 2001. I am learning C# in any spare time I have and instead of diving in and writing a monster program I thought a nice introduction would be good.
  • .NET framework comparison with Java ArchitectureMay 08, 2001. This article outlines Microsoft's proposed standardization of .NET framework in ECMA forum as CLI (Common Language Infrastructure), but the Microsoft documentation refer this as CLR (Common Language Runtime).
  • 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.
  • Working With Process ClassMay 22, 2001. This article is aimed at introducing the novice .NET developer to the basic usage of System.Diagnostics services included in the .NET BCL.
  • 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.
  • Creating Run-Time Menus in C#Jun 14, 2001. Sample example on how to create runtime menus.
  • Working with OleDb Data AdaptersJun 20, 2001. This step by step article guides you to create your database applications using OleDb Data Adapters in VS.NET.
  • Time TickerJun 26, 2001. Graphics Class encapsulates a GDI+ drawing surface. The FromHWND method is used to create a new instance of the Graphics class from a window handle. Clear method fills the entire drawing surface with the specified RGB color by using Color class. DrawString method draws a string using Font and SolidBrush classes.
  • What & Why : Properties :: Part 1Jun 26, 2001. If you were programming in C or C++ before coming to C#, you'll be a little bit confused about properties.
  • Synchronization in Parallel threadsJul 02, 2001. The Threads makes us able to run multitasks at a time. In fact Computers (John von Neumann Architecture) don't execute the tasks parallel .The OS gives threads permission (depend on thread priority) to work on CPU. The sufficient degree of parallelism keeps the CPU busy and it is efficient.
  • Net DDE to DOTNET RemotingJul 02, 2001. This article travel through time to trace the genesis of Dot Net Remoting right from RPC to RMI till SOAP.
  • Time Ticker2Jul 04, 2001. Microsoft had made lot of Changes for Beta2, some of the changes are old Namespace such as System.WinForms modified to System.Windows.Forms. In addition no. of new Namespaces like Microsoft.CSharp, Microsoft.JScript, Microsoft.Vsa etc...
  • What & Why : Properties :: Part 2Jul 09, 2001. In the part 1 of this series, I discussed about the get method of the properties, with the help of which you can make your variable so that nobody can modify the value of the variable.
  • .NET is the FutureJul 19, 2001. This has been a long time in coming. I couldn't write any more article because of some problems but finally I thought I should talk about the future of .NET. The reason is very simple, I'm getting almost 50 mails a day in my inbox just asking about the future of .NET and the comparison with other technologies. So I'm presenting my own views about the future possibilities of this technology.
  • Eater Game in C#Jul 31, 2001. This is a simple game written in C# in which the user moves a packman like player around the form and gobbles up red dots. The object is to get all the dots in as quick a time as you can.
  • 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.
  • Run-Time Menus in C#Aug 20, 2001. The following example demonstrates how to create menus on the fly.
  • Timer Control Aug 22, 2001. The sample project attached with this article shows how to use the Timer control available in .NET and C#.
  • 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.
  • Validation Controls in Web Forms: Part 2Aug 24, 2001. Validation is one of the less talked about areas – often taken for granted.
  • Validation Controls in Web Forms: Part IAug 24, 2001. Validation is one of the less talked about areas – often taken for granted.
  • Calendar Using DateTime ClassSep 05, 2001. The console based calendar program is a which when run shows current month's calendar using the C# Date Time Class.
  • Live News feed For Mobile SiteSep 05, 2001. Current News are read from a text file, which is being updated regularly after certain interval time.
  • How to By Pass ProxySep 10, 2001. There are many like me who are behind the Proxy and many time you are not able to use the recent Data in your Program from Web as your are not able to retrieve that data because of Proxy coming in between.
  • Real Time ApplicationOct 02, 2001. The Real time Application is a sample that shows the communication techniques between a client (TcpClient) and a server (TcpServer) application using Socket class on each side. The project also demonstrates how to using listview control in the real time project.
  • Encapsulation in C#Oct 12, 2001. In Object Oriented programming Encapsulation is the first pace. Encapsulation is the procedure of covering up of data and functions into a single unit (called class).
  • Understanding Properties in C#Oct 15, 2001. In C#, properties are nothing but natural extension of data fields. They are usually known as 'smart fields' in C# community.
  • Exception Handling in C#Oct 17, 2001. Exception handling is a builtin mechanism in .NET framework to detect and handle run time errors.
  • Web services with Language InteroperabilityOct 18, 2001. A web service in general is a way of exposing the properties and methods through the Internet In other words, it's an URL-addressable resource that programmatically returns information to clients who want to use it.
  • 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.
  • Introduction to Pocket PCOct 31, 2001. At the time of writing (Oct 2001) Microsoft has shipped Pocket PC 2002 and also has just released the Visual Studio .NET add-on for Pocket PC called the compact framework.
  • Components in C#Nov 06, 2001. The components creation and usage in C# is much more simple than earlier technologies like C++, ATL, COM.
  • FlashCards Language Program : How to read and save Images in a Sql Server Database using ADO.NETNov 09, 2001. I thought it would be fun to write a simple program that displayed flashcards from a database and at the same time, show you how to read and write images to the database. This program is a simple flashcard program that talks to a single table in a Sql Server Database.
  • Working with Anchoring and Docking PropertiesNov 26, 2001. In this article let's take an expedition through travel around how Anchoring, Docking Properties of Controls can be used in the Windows Forms.
  • Developing a Record Navigation Form with Unbound ControlsDec 26, 2001. Developing a record navigation form with unbound controls. The form enables you to navigate through the records one at a time. In this application we have used a combo box, two text boxes and various command buttons.
  • C# and .NETJan 07, 2002. It is sometimes important to know the details of what the compiler does. You may want to know whether constants are evaluated at compile time, or whether constant strings are folded at compile time.
  • Hangman Program Using C#Jan 19, 2002. Hangman was created to illustrate several features of C# including GDI+, string manipulation, array processing, using properties, as well as simple creation of objects.
  • Using ListBox Web ControlJan 21, 2002. This article explains the ListBox Web Forms control properties and methods and how to use it.
  • Interrogating System with WMI - Part 2Jan 24, 2002. After my last article on WMI it was time to get serious. WMI or Windows Management Instrumentation is useful on a local machine to produce a WINMSD type program but using it across a network makes it even more useful.
  • Creational Pattern - Abstract FactoryFeb 11, 2002. An abstract factory provides an interface for creating families of related objects without specifying their concrete classes. Sometimes one wants to construct an instance of one of a suite of classes, deciding between the classes at the time of instantiation.
  • World Clock Using Windows FormsFeb 11, 2002. I developed a C# application for finding World Timings given the US Central Timing.
  • FlashCards Language Program : How to read and save Images in a Sql Server Database using ADO.NETFeb 19, 2002. I thought it would be fun to write a simple program that displayed flashcards from a database and at the same time, show you how to read and write images to the database. This program is a simple flashcard program that talks to a single table in a Sql Server Database.
  • Multi-threaded Web Applications - Case II: Port ScannerMar 12, 2002. This article continues the 4-parts series of Multi-threaded Web Applications. In the first part, I have demonstrated how you can use multi-threading with ASP.NET to make a web based search engine more responsive, and to reduce the time required to compose the result. In this article, I will demonstrate how you can apply the same technique to a web based port scanner.
  • Prototype PatternMar 22, 2002. The Prototype pattern is used when creating an instance of a class is very time-consuming or complex in some way.
  • Real-time Message Logging Utility - Part 1Apr 01, 2002. A message logger is a utility that helps in logging the messages thrown from functions/programs. It is useful in critical applications as it helps to know the time taken by a function to execute, the time that the function remained idle and any messages that the function wants to be logged for further analysis.
  • Creating Graphics with XMLApr 09, 2002. This article shows how to create images on the fly and uses XML to specify the properties of the images.
  • Tracking Time in a Window ApplicationApr 15, 2002. The program reads from an XML file to get the data about names and birth dates, so it is easy to add or remove names without changing the code in case my son decides the program should include his pet dog or turtle.
  • Globalized Property GridApr 17, 2002. The property grid is a nice control to display properties and values. You create an instance of your class and assign it to the property grid. By using reflection a property grid extracts the properties of the class and displays its values.
  • C# Corner Logo: 3D GDI+ EffectMay 10, 2002. "It's time to redesign the logo. Let's do some 3D work here". That's what Owen said an hour ago. And after that he drew a 3D C# logo on the board.
  • Mastermind Game with Drag and Drop FunctionalityMay 15, 2002. There as nice article some time ago on this site for creating mastermind game by Mike Gold. I am rewriting complete game from scratch to implement Drag and Drop feature and presentable User interface.
  • Trace Utility to Trace IP Packet PathMay 16, 2002. Trace utility traces the path of an IP packet. To understand the process, its important to understand ICMP protocol we are going to use for this purpose.
  • Sorting MultiColumn ListView Windows Forms ControlMay 20, 2002. If you want to sort on the first column of a ListView, simply click the Sorting in the properties Window and choose Ascending or Descending as a value. If you want to do sorting in all the columns of a ListView, you need to write custom sorting using the ListViewItemSorter property.
  • Display and Hiding SIP on a Pocket PCMay 21, 2002. When you get your hands on a Pocket PC for the first time you have to wonder just how the heck do you enter information?
  • Save and Restore Setings of a .NET Form using XMLMay 28, 2002. Even though there are advantages to writing to the registry, there are times when a programmer does not want to impact anything outside of the directory where the program resides.
  • Configuring Applications in .NETJun 06, 2002. The .Net Framework provides a very convenient and flexible way to configure applications at run time.
  • Communication Between Two Forms: Part-IIJun 24, 2002. Last time I wrote about the possibility of sending a string from a textbox in one form to another.
  • Writing a Single Event Handler for Multiple ControlsJul 22, 2002. Writing a Single Event Handler for Multiple Controls by Giuseppe Russo. Jul 22, 2002. I have noticed that in many articles, I read, people use a longer method of clearing many textboxes, as well as handling more than one control at the same time.
  • Using Visual Studio .NET to Build and Deploy ApplicationsJul 29, 2002. No matter how much time you spend designing your application there is one key stage where it can all fall apart, the build and deployment stage.This is a first in a series of articles in which I am going to demonstrate how to use Visual Studio .NET.
  • CoolLayout .NET: A Windows Forms ComponentAug 02, 2002. CoolLayout.NET is design time enabled .NET component which helps to create professional forms with no coding efforts.
  • 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.
  • Developing a Card Game using Collections and PropertiesAug 08, 2002. In this article, author develops a card game using collections and properties.
  • Static Constructor in C# and their Usages.Sep 09, 2002. Static constructor is used to initialize static data members as soon as the class is referenced first time, whereas an instance constructor is used to create an instance of that class with <new> keyword.
  • Using DTS from C#Sep 16, 2002. In this article I will concentrate on enumerating, executing and changing properties or global variables of DTS package.
  • Eater Game II - The Stone MazeOct 02, 2002. This program combines the designs of the Eater Game and the Maze Generation Program to create a more challenging game, Eater Game II. In this game, you move a pacman-like character through a maze and eat as many stones as you can before time runs out. You have a minute and a half to try to eat stones before the pac-man simply freezes-up and accepts his quota of stones.
  • Converting C# to COBOLOct 18, 2002. In this article we'll take a look at some C# samples of code and then translate those samples into COBOL.
  • Using Dynamic Properties in Windows FormsOct 18, 2002. Using Dynamic Properties in Windows Forms by Dipal Choksi. Oct 18, 2002. In this article we will see how to dynamically configure properties in Windows Applications using Visual Studio.Net.
  • Drawing Shapes using ThreadingOct 25, 2002. This is simple multi-threading program that draws circles and rectangles. Each shape is handle by individual thread that created every time you press start button. Using sleep method on each thread we can change the speed of each shape.
  • Dynamic Code Generation and Code CompilationDec 16, 2002. This is a simple application for generating the code dynamically and compiling it dynamically.
  • Alternative Simplified C# Property Syntax Dec 19, 2002. When I first read about properties in C#, I was a bit excited and a bit confused. I was glad to see so many inventions, including properties, designed to help programmers be more productive.
  • Implementing Design Patterns in C# - Singleton PatternJan 23, 2003. There are times, when one need to have a class which can be only instantiated once. Singleton Design Pattern addresses to such situation by providing a design for such classes (known as Singleton class).
  • String in C#Feb 05, 2003. In this article, you will learn how to work with strings in C#. The article discusses the String class, its methods and properties and how to use them.
  • Creating a Web User Control in .NETFeb 05, 2003. One of our C# Corner readers gave me the idea of converting my Add/Remove Control from a Windows Form control to a User Web Control, so we will use this control as an example for this tutorial
  • Run Time CompilerFeb 07, 2003. In this article, I am going to discuss how to take a string then compile it and then how you execute it.
  • Pro Developer: This is BusinessFeb 25, 2003. I've been paying the rent as a professional software developer since the 80s. I've also worked both full time and part time as a musician for longer than that. In my travels, I've come to recognize a great many similarities between programmers and musicians. Both have the fire, passion and soul of the artist. And all too often, both are incredibly naïve when it comes to the business end of things. Business - you know, that aspect of your work where they actually pay you at the end of the day?
  • Developing Secure Web Sites with ASP.NET and IIS: Part IMar 04, 2003. Developing security for a site is like paying tax. You know it should be done at the end of financial year. But you keep it for the last and some time expect you should never have to do it. It is a similar kind of situation when building a web site. There are some web sites available to general public that can be access by any one. The security for these sites can be minimum or none at all. There are some web sites that publish and hold important information that have to be secure one way or another.
  • Mask Edit ControlMar 05, 2003. This control is a attempt to emulate the Marked Edit control available in VB 6.0. MaskEdit control extends the TextBox System.Windows.Forms.TextBox control available in Microsoft .NET library.
  • Execution-Time Code Generator for C#Mar 06, 2003. The Common Language Runtime provides a new way of doing things. The compile-time world still exist, but it is also possible to build dynamic systems where new code is added by loading assemblies or even by writing custom code on the fly.
  • Remote Objects: Part IIMar 12, 2003. This article shows how to create a remote server and MDI window Remote Client using remote object. The remote server can be used as Auction Server and Real Time Data and News Server.
  • Updated ReshuffleColumns MethodMar 20, 2003. Here is an updated version of 'ReshuffleColumns' method of article DataGrid Customization by Mahesh Chand.
  • Accessing COBOL Properties with C#Apr 02, 2003. This article will review a new option for exposing those assets via the use of Properties.
  • MWLabels and MWScrolllabels v3.0Apr 14, 2003. MWLabeland MWScrollLabels are back (v3.0). This time you can choose which StringFormat you want to use: traditional GenericDefault or GenericTypographic. GenericDefault is like a normal Label and GenericTypographic is what has been used in the previous versions of MWLabel and MWScrollLabel.
  • Getting Official DayTime using NIST TimeServerApr 21, 2003. This program shows how to create a simple socket to a NIST timeserver (Port 13) and using the Daytime Protocol, gets the official time.
  • Add Column Dynamically to DataGrid to Display CalculationMay 08, 2003. In this article we'll see how to create a DataGrid column which displays the calculation of more than one field in the database table. The calculation could be addition, multiplication or even filtering rows.
  • 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.
  • Changing the default limit of 25 threads of ThreadPool ClassJun 19, 2003. The Threadpool is useful for managing threads that are usually in a wait state and that take only a short amount of time to do their work. If still you would like to change the default limit of 25 threads then here you go.
  • 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.

About Time-property

NA

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.
European SharePoint Conference