C# Corner

Resources  
  • Yahtzee Program using C#Jan 24, 2000. The Visual C# environment has given the programmer the ability to create applications in RAD mode without the steep learning curve for the C++ programmer. (I do miss templates though!). The above application, yahtzee, is based on a popular poker-like dice game.
  • 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.
  • Constructor and Destructors in C#Oct 10, 2001. This detailed article talks about how constructors and destructors work in C# and how to use them in your applications.
  • 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.
  • Data Access through Web Services, Stored Procedures and SQL QueriesFeb 12, 2002. Web Services has been the most revolutionary aspect of the .NET framework developed by Microsoft. This article presents the three different modes through which data can be accessed viz. through Web services, stored procedures and SQL query using the power of ADO.NET and XML.
  • .NET Static Variables : Better than Application!Feb 22, 2002. In traditional ASP, we always had the Application object to store application-wide variables in.
  • Customized Windows Forms Look and FeelMay 28, 2002. I have encountered instances when I needed a high level look and feel of Windows Forms and controls.
  • Hex Colors in C#Sep 05, 2002. Currently I am developing a shareware application for generating image galleries for the web. There is a template engine built in that allows the user to specify colors as hexadecimal values, plus many other features.
  • User Management Utility for Web Form Authentication.Sep 06, 2002. This article deals with the management of user login and password information for a Forms Authentication in ASP.NET.
  • 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.
  • AddressParserFeb 06, 2003. The AddressParser class provides 2 static methods - ParseIpAddress and ParseMacAddress.
  • How to use C# ConstructorsApr 08, 2003. This article gives a brief introduction, features of constructors their usage and also an idea of how to use C# constructors.
  • Debugging a Compiled ComponentFeb 02, 2004. After an assembly is compiled into a dll in a release mode, it is very difficult to gather information from it such as runtime performance, parameters values, etc.
  • Constructors In C#May 06, 2004. This article explains constructors in C# with sample examples including constructor overloading, static constructors, and constructor chaining.
  • Using SyncFusion Grid in Virtual Mode with C# and .NETMay 27, 2004. This article and attached source code shows how to use SyncFusion Grid control in virtual mode to display and manipulate data from a data source.
  • 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.
  • 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.
  • Coloring the Console in C# Oct 25, 2004. When working with console applications in C#, you always see a black and white screen. What if we want to change the background color of the console? We can change the foreground and background color of our console application by using win32 API SetConsoleTextAttribute().
  • New Features of C#2.0 - Static ClassesApr 13, 2005. Static classes are used when a class provides functionality that is not specific to any unique instance.
  • What is new in C# 2.0?May 30, 2005. In this article, I discuss new features added to C# 2.0.
  • Utilize the Full Functionality of the Whidbey File ManagementNov 15, 2005. This article is based on a pre-release version of Microsoft Visual Studio 2005, formerly code named "Whidbey". All information contained herein is subject to change.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IVJan 30, 2006. Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article we’ll look further into Garbage Collection (GC) and some ways to keep our applications running efficiently by using static class members.
  • New features in C# 2.0Feb 18, 2006. In this article, I will learn about and use the new features in C# 2.0 added by the Microsoft designers, such as generics, anonymous methods, partial types, static classes, nullable types, and limiting access to properties.
  • 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#.
  • Prevent CD AutoplaysDec 19, 2006. This article describes the approach used programmatically to prevent a CD from going into auto play mode; this may be useful to you if you are, for example, writing an application that logs directly to CD and you are trying to burn data periodically to a CD but you do not want the CD to go into auto play mode after burning a some data to it.
  • Lock, Logoff, Reboot, Shutdown, Hibernate, Standby in .NetFeb 13, 2007. This article is about how to lock, logoff, reboot, shutdown and put the system to hibernate and standby mode.
  • OleHelper for Microsoft Access (.MDB) in ASP.NET 2.0Apr 18, 2007. This article is very much similar to the Microsoft Data Access Application Block, provides static methods in a "sealed class OleHelper" where I have Execute Dataset, ExecuteNonQuery & PrepareCommand to work with Microsoft Access database.
  • Building Reports from Object Collection using ReportViewerApr 18, 2007. In this article, I discuss how to create reports from a business objects collection. I create a Windows Forms application with reporting being processed as local processing mode.
  • Authentication Modes in ASP.Net for SecurityJul 24, 2007. In this article we will investigate the different types of authentication provided by Asp.net.
  • Managed Static Code Analysis in VSTS: Part ISep 24, 2007. This article attempts to explain the concept of static code analysis and tools that can be used to realize it with a focus on managed code analysis.
  • Fade Out a Form in C#Oct 30, 2007. This article describes a simple approach to fading out a form.
  • Running a web site in Kiosk mode with c#Jan 30, 2008. This article addresses a simple approach to supporting the display of a web site in kiosk mode using a simple win forms application.
  • Colorful Console Mode Applications in C#Jun 09, 2008. So, you need to a write a console mode application, no reason you can’t have a little fun with it by introducing color into the output. This article describes how to jazz up a console mode application with color (which, as you will see, is pretty darned easy to do).
  • Best Practices for Data Transfer in SQL Server 2005Jun 23, 2008. This article talks about some best practices and the process of data transfer in SQL Server 2005.
  • 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.
  • Dynamic and static Rectangle in WPFAug 29, 2008. This article shows how to create dynamic and static rectangle in WPF and XAML with various drawing effects.
  • Constructor vs Static ConstructorOct 23, 2008. This article explains you the basic difference between the constructor and static constructor via example.
  • C# and XAML within a Silverlight 2 context? - Binding Modes: Part VIIIDec 30, 2008. In this article I will expose the different binding modes.
  • Demonstration of ListView Contents in WPFJan 14, 2009. This article shows how to create a ListView control that uses a GridView view mode to display the contents.
  • SharePoint Quick Start FAQ: Part IIIJan 15, 2009. This is my third series of SharePoint Quick Start FAQ. We will cover page templates , page instances , WSS model , understand safe mode processing , deploy custom controls and understand WebParts. So let’s drink the SharePoint wine series by series, slowly , maintain the hangover and enjoy this great product.
  • Full Screen Applications in Silverlight 2.0Jan 19, 2009. In this article we will see how to set our Silverlight applications to run in full screen mode.
  • Full Screen Mode in SilverlightMar 16, 2009. Silverlight provides functionality to display the Silverlight plug-in in full-screen mode i.e. effectively take over the entire screen of a computer hiding everything else from sight - including the browser frame
  • Compiling The First F# Program Using Interactive ModeApr 03, 2009. In this tutorial we will compile the first F# program using the interactive mode. There are lot of talks going on regarding F# , just thought how about compiling the first program using interactive F# mode.
  • What are Properties in C-sharp and how to use them?May 19, 2009. In this article I will explain the property in C# along with practical demonstration which will help you to understand it in a simple way.
  • Static in C#May 20, 2009. In this article I m highlighting something about static. It's a simple article to make beginners understand in easy and fun way.
  • Single File Mode in ASP.NETJun 04, 2009. This article discusses step by step procedure of how to create a Single File Mode example in ASP.NET using Visual Studio 2005 / 2008.
  • Instance Management in WCF Part # 3Jun 22, 2009. This article is part # 3 of Instance Management in WCF. This article will explain about Singleton Service Instance mode. This article will give theoretical introduction and explanation of coding sample also. It will also discuss about various disadvantages of Singleton Service Instance mode and its potential place of uses.
  • Instance Management in WCF Part # 2Jun 23, 2009. This article is part # 2 of Instance Management in WCF. This article will explain Session Full Instance management service. This will explain different Session Mode at Contract level. This will explain Per-session service also. This article will be explaining Session Full Service with a code also.
  • List Box in Silverlight 3 ApplicationJul 28, 2009. In this article we will explore what are features available for a ListBox in Silverlight 3 Application.
  • Resources in WPFAug 06, 2009. This article explains basics of resources in WPF.
  • Using Static Resource in Silverlight 3 ApplicationAug 18, 2009. This article shows how to use static resource in Silverlight 3.
  • Singleton Pattern Unleashed in C#Oct 03, 2009.
  • Static class in C#Nov 29, 2009. This article will discuss about static class in C#. Different feature of static class and different way of creating static class also will be discussed.
  • Dynamic Type with Reflection in debug modeJan 26, 2010. This article will give simple debug mode explanation on how Reflection and Dynamic type works.
  • GrayScale Image in WPFFeb 10, 2010. The PixelFormats class is used to represent image pixel formats. The class has about 2 dozens of static properties representing various pixel formsts such as BlackWhite, Gray16, Gray32Float, Gray8, Rgba64 and so on.
  • ComboBox in DataGrid in WPFFeb 18, 2010. This article will describe the DataGrid in Edit mode while the edit cell requires a list of data.
  • Compositing Mode and Blending in GDI+Apr 09, 2010. In this article I will explain about Compositing Mode and Blending in GDI+.
  • Static Resources in Silverlight class libraryApr 26, 2010. In this article we will see how to have styles in Silverlight class library.
  • Application Startup and Executable PathApr 26, 2010. The code snippet in this article demonstrates how to use Application class static properties to get Windows Forms application startup path, executable path and user data path using C#.
  • Notification Window in Silverlight 4May 05, 2010. In this article we will see how we can use Notification Window. We have to remember one thing that, Notification Window only works in Out-of-Browser mode.
  • Keyboard Support in Full Screen Mode in Silverlight 4 May 07, 2010. In Silverlight 4, we have keyboard support. In this article we will explore about it.
  • Dealing with transformations in WPF: PartII-Custom and advanced 2D transformationsMay 10, 2010. In a previous article we've discovered the different transformation modes. In this article, we continue discovering the transformations.
  • How to Use Resources in WPFJun 09, 2010. This article will show how to use resources in WPF.
  • HTTP Duplex messaging in Silverlight 4Jul 19, 2010. In this article we will learn how we can implement PollingDuplex with MultipleMessagesPerPoll duplex mode.
  • Static class in C#Jul 28, 2010. In this article you will learn how to use Static classes in c#.
  • Static Event in C#Sep 23, 2010. There might be times when you'll want your event to perform same actions for all objects. In this article we will see how to do that.
  • Using StaticResources in WPFOct 26, 2010. Here I describe Resource markup extensions.
  • How to Pass Data Between the Forms Using the Static ConceptNov 20, 2010. This article shows how to pass data between the forms using the static concept.
  • How to configure User Profile Service application in partition modeFeb 03, 2011. Here we see how to configure User Profile Service application in partition mode.
  • Importance of TimeZoneInfo class in ASP.NETFeb 03, 2011. The TimeZoneInfo class represents any time zone in the world. It contains a set of static methods/properties that allows us to get the current time zone information, convert datetime values between time zones etc.
  • Disable Custom Error Mode In SharePoint 2010Feb 18, 2011. How to disable SharePoint custom error mode. It will be very useful when you work with custom development In SharePoint 2010. By default SharePoint will display predefined errors, not the exact errors raised by the custom code. The following steps will help you to disable custom errors in SharePoint.
  • Rules for creating C# Static ClassesFeb 23, 2011. Here I show some rules to create a static class.
  • Understanding Static & Dynamic PolymorphismMar 02, 2011. Understanding Static & Dynamic Polymorphism with Examples.
  • Understanding C# Constructors and it's typeMar 03, 2011. In other words a constructor is a class default method that gets automatically executed whenever a class's object is created or whenever the class is initialized.
  • Data Aggregation using Presentation Model in RIA and Silverlight 4Mar 08, 2011. In-depth look into Presentation Model and its mode of handling related multiple entities.
  • WCF 4.0 Features: Part 1Apr 29, 2011. In short WCF 4 tries to address a common scenario easily and at the same time gives us more options for communicatation between service and client.
  • PIN Extension Method Using C#Jun 07, 2011. An extension method is a special kind of static method that allows you to add new methods to existing types without creating derived types. PIN stands for the three extension methods PreviousItem, IndexOfCurrentItem and NextItem.
  • Static and Non-Static Methods in C#Jun 20, 2011. In this quick article you will take a look at static and non-static methods in C#.
  • Static and Non-Static Fields in C#Jun 20, 2011. In this quick article you will take a look at static and non-static fields in C#.
  • Chart Web Part in SharePoint 2010Jun 24, 2011. Chart web part is a new feature in SharePoint 2010 which is used to create static and dynamic charts. In this article we will be seeing how to create an out-of-box chart web part in SharePoint 2010.
  • Display images inside a GridView in Android using VS 2010Jul 14, 2011. The GridView view mode displays a list of data items by binding data fields to columns and by displaying a column header to identify the field. The column cells and the column header of a GridViewColumn have the same width.
  • Static Method in C#Jul 20, 2011. In this quick article you will take a look at static methods in C#.
  • Polymorphism in JavaAug 05, 2011. Polymorphism is discussed in this article. You'll see, how to achieve polymorphism in Java. Method overloading and overriding are discussed as well as.
  • ASP.NET MVC, WCF, ASP.NET Webforms, and JQueryAug 10, 2011. The sole purpose of any API within the applications I build is to deal with business layer logic and the data related to it. Ideally speaking I would want my API to return structured data which is easily transformed into a format for the client application using the API (e.g. JSON). And all my UI for web applications must be handled with client-side scripts. Client side includes both static HTML, CSS and JavaScript, and in this instance I specifically refer to JavaScript and the handling of my API’s data using JSON, for which I use jQuery.
  • Support for Lazy Initialization in .Net 4.0Sep 05, 2011. The Lazy initialization can be seen in designing the singleton pattern where we can have static readonly property in a nested class that initializes the singleton object in a Lazy way.
  • C# Static ConstructorOct 03, 2011. In this article I will be explaining Static Constructors with the help of small demo.
  • ReplicatorActivity in WorkflowNov 15, 2011. In this article we add a DelayActivity with a random timeout just to show that the ReplicatorActivity is really running in parallel mode.
  • Working With Functions in Expression LanguageDec 04, 2011. The JSP expression language allows you to define a function that can be invoked in an expression. Functions are defined using the same mechanisms as custom tags. The EL Function are public static methods in java classes.
  • Static Text in LightSwitch Dec 14, 2011. In this article you you will see how to create static text in LightSwitch.
  • Work with Static Methods and Variables in PHPDec 19, 2011. In this article we are going to understand the concept of static methods and variables. Methods and variables can also be used and accessed if they are defined as static in a class.
  • Add Static Image on the Home Screen in Visual Studio LightSwitchDec 19, 2011. In this article you will see how to set a static image on the home screen in a Visual Studio LightSwitch application.
  • Silverlight 4 App with Elevated Trust Mode-OOBDec 22, 2011. In this article I will demonstrate how to use a Silverlight 4 App With Elevated Trust Mode-OOB.
  • Create Cache Manifest Using HTML 5 ToolsJan 09, 2012. This is a simple application showing how to create an application cache using he HTML 5 tools. The application cache is used to store the static resources. The application cache is just like a browser used to run the offline application and this article also helps to show how to create a manifest file in your application.
  • Protocol Mapping in WCF 4.0 Hosted on Web AppJan 22, 2012. Today, in this article let’s dig out an interesting and wonderful concept. This concept is made life better and delivers high in throughput.
  • Wrap Panel in Windows Phone 7 via WCF ServiceFeb 04, 2012. In this article let see one of the good and interesting concept in windows phone whereby communicating with WCF Service to perform some expected operation. This concept made the phone user to handle the task easily in light weighted mode.
  • Singleton Design PatternFeb 27, 2012. A design pattern is a general repeatable solution to a common problem that occurs in the software industry. A design pattern is not completely a form of code, but it is a template for how to solve the problem and also can be used in many other problems.
  • Dropdown List in PHPMar 03, 2012. In this article you will see how to create a static and dynamic drop down list in PHP.
  • Switch Between Metro UI and Desktop in Windows 8Mar 17, 2012. In this article, I explain how to switch between Metro UI and Desktop Mode. Articles also talks about some short cut keys.
  • Creating an Editable Table in JavaApr 04, 2012. In this article we are going to making a table. This table is not a static table; its editable.
  • Start Windows 8 in Safe ModeApr 08, 2012. In this article we are describing how to start the Windows 8 in Safe Mode.

About Static-Mode

NA

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.
Download Free eBooks