Archive | C# Language RSS feed for this section

Generic Property Window

Title: Generic Property WindowAuthor: Fernando GomezEmail: fernando.gomez@matematicas.netEnvironment: C# 2.0 – Visual Studio 2005Keywords: Windows Forms, GenericsLevel: IntermediateDescription: Article that demostrates how to create generic property windows.Section C# – C# Programming – Generics/Windows FormsSubSection General<!– – STEP 2 —><!– Include download and sample image information. –> Download demo project – 41 Kb <!– – STEP 3 [...]

Read more

Writing an ActiveX control using C#

Software developers have used ActiveX controlson their web pages to add advanced functionality to the web experience.With my migration from a Visual Basic 6 world to a Microsoft .NET C#world, I had some question as to how I can create an ActiveX controlwith .NET. After some research I found out that the solution is reallyquite [...]

Read more

C# Events Lesson 2: Passing data to a consumer

In the previous lesson we created an event andconsumed it. In doing so you probably noticed that our code would havebeen a little better if we could have determined whether or not thefile actually existed. We could then provide more information to theuser and make our code a bit more useful. In this example we [...]

Read more

C# Events: Lesson 1

The ability to fire an event is core to mostWindows development projects. Events are useful for updating a userinterface with changed data, or causing a piece of code to run afteranother piece of code has completed. .NET has brought us a powerfulmodel for programming events. In this lesson we will write a smallapplication that will [...]

Read more

SQLDMO For C# Enhanced

I often need to compare versions of databasesand comparing scripts is one way to find differences in the schemas. Ihad been using a two step process of using the scptxfr utility togenerate scripts, then using a file comparison utility such as BeyondCompare to compare the generated script files. One problem with thescptxfr utility is that [...]

Read more

Overview of DTS Package

DTS IntroductionMany organizations need to centralize data to improve corporatedecision-making. However, their data may be stored in a variety offormats and in different locations. Data Transformation Services (DTS)addresses this vital business need by providing a set of tools thatlets you extract, transform, and consolidate data from disparatesources into single or multiple destinations supported by DTSconnectivity. [...]

Read more

Writing an ActiveX control with C#

Software developers have used ActiveX controlson their web pages to add advanced functionality to the web experience.With my migration from a Visual Basic 6 world to a Microsoft .NET C#world, I had some question as to how I can create an ActiveX controlwith .NET. After some research I found out that the solution is reallyquite [...]

Read more

Calling C# Interface and Abstract Members When They Have Conflicting Names

Here is an example which helps you to know howan abstract class and multiple interface methods are called, when theyhave conflicting names. For this example, I've used 2 interfaces andone abstract class which have only function declaration with same name.The abstract class and interfaces are inherited in the derived classfor implementation. Before you go thru [...]

Read more

Connecting to MS Access DataBase From an ASP.NET Web Form

The following steps will help you to conenct to a MS Access Database from your ASP.NET web form. Step 1 :Create an Asp.Net Web Application a)File->New->Project select ASP.NET Web Application Click OkStep 2:In the Design View of the form , from the WebForms ToolBox Drag and Drop a ButtonDrag and Drop a DataGrid Step 3From [...]

Read more

Asynchronous Data Access using Callback Model

Ability to execute several tasks on different threads at the same time.Through Asynchronous call the main thread never blocked and anotherthread calls the method and gives the output to the main thread. The problem with the ADO.Net 1.x is that onethread has to wait for the other thread to complete. So to overcomethis problem Microsoft [...]

Read more