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.
  • Serializing Objects in C#May 14, 2001. In simple words serialization is a process of storing the object instance to a disk file. Serialization stores state of the object i.e. member variable values to disk. Deserialization is reverse of serialization.
  • 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.
  • Network Programming in C# - Part 2Nov 12, 2001. This is the second part of the series of articles about the network programming with C#.
  • 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.
  • 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.
  • JIT CodingMar 11, 2002. One not so well known feature of .NET platform is possibility to invoke compiler and practically create code and assembly from running instance of application. It is possible to do that in two ways. First one is a bit simpler and involves namespaces System.CodeDom and System.CodeDom.Compiler, second one is more efficient and utilizes namespace System.Reflection.Emit. Since there are very few examples about how to use System.CodeDom.Compiler I will start with it.
  • Tutorial: Capturing and Running IE Instances in a Windows controlMar 15, 2002. In this article we are going to study how to find the running instances of Internet Explorer on your machine.
  • 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.
  • 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.
  • 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.
  • 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.
  • Single Instance Control ComponentSep 23, 2002. This article is on a single Instance control component which checks whether any instance of your application is running on the System.
  • Singleton Patterns in C# RevisedDec 16, 2002. I am coming from the Java world, where synchronizing the Singleton creation is common practice.
  • Creating an Instance of Internet Explorer in C#Dec 19, 2002. I was trying to write a program that opened an instance of Internet Explorer in a separate window, rather than use the Browser control that comes with the .NET platform.
  • Late Binding With ReflectionOct 20, 2003. Component based technology has done great things for software development, allowing reuse and leading to better-written code that separates subjects and entities into distinct components.
  • 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.
  • Understanding SQL Server Yukon Service BrokerFeb 25, 2004. The new version of Microsoft SQL Server™ "Yukon" comes together with a set of technologies capable of enlarging the horizon for database applications. One of the most remarkable technologies is the Service Broker that makes it possible to build database-intensive distributed applications. In this article we explore the core concepts of the Service Broker and show how to use its potentialities to build applications with message interchanging.
  • 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.
  • Validating Input Xml Data FilesJun 28, 2004. In this article we'll discus two strategies for validating input XML data files. The validation of an XML input file could occur at various instances of processing.
  • An in-depth look at WMI and Instrumentation: Part IISep 18, 2004. In this second part of the series, you will learn how to work with WMI classes and class instances, and then demonstrates the wealth of information available through the Win32 and IIS WMI providers.
  • Download Files using HTTP and Proxy Server in C#Sep 21, 2004. This article explains how to pass proxy server network credentials when downloading files using HTTP.
  • 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.
  • MDI (Multiple Document Interface)Jul 05, 2005. This tutorials describes about Multiple Document Interface.
  • 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# using the Proxy Pattern to Define RelationshipsJan 23, 2006. I was recently working on a 2.0 Framework project where we had many types of related objects. However, we needed to ensure that there were not multiple instances of the same object in memory. Usually the GOF Proxy pattern is used to hide or control access to an object, but we can also use it to define relationships between objects.
  • 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.
  • 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.
  • Passing Data Between Windows FormsJan 16, 2007. This article provides a simple example of using delegates and events to transfer data between Windows forms. The example provided contains three separate forms; the main form interacts with the other two forms by responding to events generated by instances of the other two forms.
  • 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.
  • 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.
  • 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.
  • Passing and retrieving parameters from windows workflowJun 09, 2008. Basically this article gives an idea about how to pass the parameters and getting output parameters from the workflow.
  • 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.
  • Access the Same Instance of Internet Explorer WindowJun 26, 2008. This tip shows how to open an URL inside an Internet Explorer browser window from your C# application. Furthermore it shows how to update that specific window.
  • 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.
  • Checking previous instance (single instance) of an C# windows application, also setting MDI child form to a MDI parentSep 04, 2008. In this article I will describe how to check previous instance (single instance) of an C# windows application and also whether a MDI child is set to a MDI parent
  • Intoduction to Biztalk Server 2006Nov 01, 2008. This article describes What is Biztalk server and explains a little about Message Engine and message lifecycle inside the Biztalk server.
  • The Two Interceptors: HttpModule and HttpHandlersDec 23, 2008. Many times we want to implement pre-processing logic before a request hits the IIS resources. For instance you would like to apply security mechanism, URL rewriting, filter something in the request, etc. ASP.NET has provided two types of interception HttpModule and HttpHandler.
  • 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.
  • 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.
  • Singleton Design Patterns in C#Jun 08, 2009. Whenever we want that a class has only one instance and it should have global point to access it but allowing the flexibility to create more objects if the situation changes,in that case we will use Singleton Design Pattern.
  • Instance Management in WCF Part # 1Jun 19, 2009. This is first part of multi series articles. This article is giving introduction of Instance Management. This article will explain about Per-Call Instance management technique as well.
  • 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.
  • Instance Management in WCF Part # 4Jun 25, 2009. This article is part # 4 of Instance Management in WCF. This article will explain how to work with Session ID in WCF. This article will give theoretical introduction and explanation of coding sample also. It will explain 2 full coding sample that how to work with Session ID in WCF.
  • 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.
  • Enumerating SQL Server InstancesSep 08, 2009. Learn how to enumerate currently installed SQL Server instances on this machine and on the network.
  • Singleton Pattern in C#Nov 26, 2009. In this article we will see how to create a single instance of a class using Singleton Pattern.
  • Dynamic Type with Reflection in debug modeJan 26, 2010. This article will give simple debug mode explanation on how Reflection and Dynamic type works.
  • 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.
  • Checking Improper DISPOSE in assemblies using SharePoint APIFeb 23, 2010. In this article I will show how to check improper disposing of instance of SharePoint classes in an assembly.
  • Single instance of application in C#Mar 25, 2010. There is some application that we want that only single instance of application works at a time. So here in this article is the logic for doing that.
  • Compositing Mode and Blending in GDI+Apr 09, 2010. In this article I will explain about Compositing Mode and Blending in GDI+.
  • How to Prevent Multiple Instances of Child Form in MDI Windows Form ApplicationApr 12, 2010. This article shows you how to prevent multiple instances of child form in MDI windows Form application.
  • Programmatically Enumerating, Attaching, and Detaching SQL Server DatabasesApr 14, 2010. This writing is like an encyclopedia for the SQL statements and stored procedures used to enumerate, attach, and detach databases on a SQL Server instance.
  • 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.
  • Creating a Button at Run-time in C#May 13, 2010. Creating a Button control at run-time is merely a work of creating an instance of Button class, set its properties and add Button class to the Form controls.
  • Enumerate the ALL SQL Server Instances in NetworkJun 01, 2010. In this article I will teach you how to get names and all other information of sql server instances that are in network.
  • 3 Ways to Do WCF instance Management (Per call, Per session and Single)Jun 07, 2010. Many times we would like to control the way WCF service objects are instantiated on WCF server. You would like to control how long the WCF instances should be residing on the server.
  • WCF Concurrency (Single, Multiple and Reentrant) and ThrottlingJun 27, 2010. In this article we will concentrate on WCF concurrency and throttling. We will first try to understand what are WCF concurrency and the 3 important types of WCF concurrency. We will then see a small sample of WCF concurrency with single and multiple. We will then go through 9 combinations of WCF concurrency and instancing. Finally we will try to understand how to configure throttling using WCF ‘web.config’ file.
  • HTTP Duplex messaging in Silverlight 4Jul 19, 2010. In this article we will learn how we can implement PollingDuplex with MultipleMessagesPerPoll duplex mode.
  • How to: Execute only one instance of application concurrentlySep 07, 2010. There was a requirement that the application can’t run more than one instance, and if already running then show the message to the user and set that window as active. Here we will see how to do that.
  • Abstraction in C#Oct 13, 2010. The word abstract means a concept or an idea not associated with any specific instance.
  • Chapter 3: Data-Tier ApplicationsNov 30, 2010. With the release of Microsoft SQL Server 2008 R2, the SQL Server Manageability team addressed these struggles by introducing support for data-tier applications to help streamline the deployment, management, and upgrade of database applications. A data tier application, also referred to as a DAC, is a single unit of deployment that contains all the elements used by an application, such as the database application schema, instance level objects, associated database objects, files and scripts, and even a manifest defining the organization’s deployment requirements.
  • Using reflection and attributesDec 12, 2010. Reflection provides objects (of type Type) that encapsulate assemblies, modules and types. You can use reflection to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object and invoke its methods or access its fields and properties.
  • Chapter 5: Consolidation and Monitoring in SQL ServerDec 22, 2010. The goal of SQL Server consolidation is to identify underutilized hardware and improve utilization by choosing an appropriate consolidation strategy. With SQL Server, hardware could be considered to be underutilized when workloads are using less than 30 percent of server resources.
  • Singleton Pattern - Creational PatternJan 19, 2011. This is a part of the Creation Pattern. This pattern ensures that you have only one instance and provides a single point of contact to access the instance.
  • 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.
  • 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.
  • 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.
  • Advantage of [ServiceDependency] in WCSF - Instance ReuseApr 06, 2011. Here we will see Advantage of [ServiceDependency] in WCSF - Instance Reuse.
  • 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.
  • Initializing Windows Azure Diagnostics: Part 1May 07, 2011. Windows Azure diagnostic monitor runs in Windows Azure and in the computer's emulator and collects diagnostic data for a role instance.
  • Windows Azure - Reimage a Running Role Instance of an ASP.Net Azure Web ApplicationJul 13, 2011. In this article we are going to see how to ReImage a running instance of an Azure application using the Windows Azure Management Portal
  • Windows Azure - Reboot a Running Role Instance of an ASP.Net Azure Web ApplicationJul 13, 2011. In this article we are going to see how to reboot a running instance of an ASP.Net Azure Web Application using the Windows Azure Management Portal
  • 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.
  • Delegate in .NET (C#): Digging / Acquaint - Make it SimpleJul 17, 2011. A delegate is an object or instance which can hold a reference of any function or which can bind a function.
  • Windows Azure - Fixing Reconnect Remote Desktop Error: The Specified User Name does not exist. Verify the Username and try Logging in againJul 18, 2011. In this article we are going to see how to fix the error 'The Specified User Name does not exist. Verify the Username and try logging in again' when we try to reconnect to the Remote Desktop Azure Role Instances.
  • 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.
  • WCF Instance ManagementSep 14, 2011. Instance Management is the name for a set of techniques used by WCF to bind client requests to service instances, governing which service instance handles which client request. This is a service side implementation detail.
  • Explicit Interface C#Oct 26, 2011. In this article we will see how to explicitly implement interface members and how to access those members from the interface instances.
  • 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.
  • Destructor in C#Nov 15, 2011. Destructors are used to destruct instances of classes. In this article you will understand how different a C# destructor is when compared to a C++ destructor.
  • Action Tags in JSP Nov 26, 2011. The JSP Action tags are set of some basic tags, such as inserting other page resources, forwarding the request to another page, creating and locating the JavaBeans instances, and setting and retrieving bean properties, in JSP pages.
  • Action Tag: useBean in JSPNov 29, 2011. The <jsp:useBean> action tag is used to instantiate a java bean, or to locate an exisiting bean instance, and assign it to variable name or id. Bean is a reusable component which mostly contains the setter and getter values, we also called it as mutators.
  • Describing the Life Cycle of ServletDec 12, 2011. The Life Cycle of a Servlet involves creating an instance of the Servlet, associating the Servlet with initialization information, dispatching request to the servlet instance and finally destroying the servlet instance.

About Instance-Modes

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!
Visual Studio Live - Redmond 2016