Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
SQL Server

Home >Search > C-Sharp
What's New - What's Hot
Listings for Applications Applications (66)
Listings for Articles & Samples Articles & Samples (18146)
Listings for C-Sharp Sites C-Sharp Sites (12)
Listings for Errors and Bugs Errors and Bugs (25)
Listings for Introduction Introduction (72)
Listings for Knowledge Base Knowledge Base (234)
Listings for Sample Chapters Sample Chapters (79)
Listings for Support WebCasts Support WebCasts (2)
Listings for Training Training (19)

Events and Delegates     
Total Hits: 541  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Events in C# are based on delegates, the Originator defining one or more callback functions. A class that wants to use events defines callback functions as delegates and the listening object then implements then....

Accessing an access database using ADO     
Total Hits: 1169  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This program shows how access an access database using ADO. I have an Access 2000 database in project\bin\debug directory. My database name is mcTest.MDB. You can create your own database and copy in your project's debug directory. I am not attaching database with this code because of size problem....

Overloading strings in C#     
Total Hits: 1198  |  Today: 0Author: Michael Gold      Rating:  
Read Reviews | Write Review |  Your Rating: 

Today I realized that I miss those Visual Basic/Visual C++ type operators. You know the ones: Left, Mid, Right. I'm so used to using them, that I decided to override the string class. Simple enough, right? I just inherit from the System.String and then I get all the nice string methods, plus my own: Left, Mid, and Right. The problem, though, is that the System.String class is sealed. You can't inherit from it. So now what? Must I give up the dream of using those fine old methods?...

XML Serialization using C#     
Total Hits: 3013  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Serialization is a process of storing state of an object to some media like disk file or stream. Few weeks back we saw how to serialize objects to disk file in binary format . .NET further provides a way to serialize objects in XML format. Thus objects can be converted into XML documents (serialization) and later on can be constructed back from the XML documents (deserialization). This article demonstrates how to use XML serialization techniques using C#....

Detect OS Version Using C#     
Total Hits: 1838  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

In Win32 SDK, we have an API GetVersionEx that returns the information in OSVERSIONINFO structure. And then we can look at the values of various members of structures to decide what version of operating system we are running on. To accomplish the same task, .NET SDK provides a class named Environment. In this class there is a static method named OSVersion that returns OperatingSystem object. This object can be used to get the value of operating system version.


Consuming a Web Service from a Win Form Application     
Total Hits: 1161  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article we will concentrate on consuming the Stock-Quotes Web Service from a Win Form Application. This article assumes that you have already created a Web Service and hosted it in a virtual directory called stockquote. i.e. the full path to the Web Service is Also we shall be using VS.NET to build our Win Form....

C# DB Connection With Beta 2     
Total Hits: 688  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you are using Beta 2, then try this code to connect to your SQL server. Some words about connect string: Persist Security Info can not be omitted.Data Source is your SQL server name, not ODBC DNS name!(if you run SQL locally, put
your cursor over the icon on system toolbar , you will see "\\XXXXX", that XXXXX is your server name)....

Q302902 - BETA-HOWTO: Binding for Office Automation Servers with Visual C# .NET     
Total Hits: 1170  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article explains and compares early and late binding for Visual C# Automation clients and provides code samples that demonstrate both types of binding....

Create and Control Windows Services     
Total Hits: 4836  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

If dealing with Windows Services in VC++ scares you, calm your fears by using VC#.NET and the .NET Framework. VCDJ's Mark Schmidt shows you how these tools reduce the complexity of creating and controlling services—as well as cut your development time....

Exploit COM Interop in .NET     
Total Hits: 714  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Explore COM's interoperability features in the .NET Framework and Visual Studio.NET. VBPJ's Brian Noyes shows you how to write a .NET component you can expose as a COM component to unmanaged clients, then build an ActiveX control that expands the component's capabilities.


Consume COM Components from .NET     
Total Hits: 958  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Don't dump your existing COM components and ActiveX controls. VCDJ's Brian Noyes shows you how to use them in your .NET client applications.


Using Microsoft Message Queues to build scalable solutions.     
Total Hits: 1414  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article shows you how to create, send, and received messages using MSMQ from the .NET base class library (System.Messaging) and C#. By architecting a multi-tier distributed application to used message queues among decoupling layers, is one of the elements that makes the final solution more scalable and robust....

Leveraging VB.Net Base Classes     
Total Hits: 832  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Multiple language implementation has an inherited powerful advantages. The .Net unify class architecture model allows .Net languages to leverage class libraries implemented in other class libraries. This article shows you how to leverage the power of VB.Net Financial base class library using C#....

Working with Data Types in C#     
Total Hits: 648  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

First thing a programmer looks for is what kind of data types a programming languages has and how to use them. In this part, you will cover C# data types and how to use them in a program....

Mixing C and C++ Exceptions     
Total Hits: 442  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you want to write more portable code, using structured exception handling in a C++ program is not recommended. However, you may sometimes want to mix C and C++ source code, and need some facility for handling both kinds of exceptions. Because a structured exception handler has no concept of objects or typed exceptions, it cannot handle exceptions thrown by C++ code; however, C++ catch handlers can handle C exceptions. As such, C++ exception handling syntax (try, throw, catch) is not acce.....

Sharp New Language: C# Offers the Power of C++ and Simplicity of Visual Basic     
Total Hits: 1361  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Many developers wish there was a language that was easy to write, read, and maintain like Visual Basic, but that still provided the power and flexibility of C++. For those developers, the new C# language is here. Microsoft has built C# with type-safety, garbage collection, simplified type declarations, versioning and scalability support, and lots of other features that make developing solutions faster and easier, especially for COM+ and Web Services. This article gives you a first look at C.....

C# Introduction     
Total Hits: 897  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

According to Microsoft (MS) C# is, "C# is a simple, modern, object oriented, and type-safe programming language derived from C and C++. C# (pronounced “C sharp”) is firmly planted in the C and C++ family tree of languages, and will immediately be familiar to C and C++ programmers. C# aims to combine the high productivity of Visual Basic and the raw power of C++."...

Regular Expression Sample     
Total Hits: 631  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

The following example shows the use of Regular Expresssions in C#.This program has basic validation scripts for validation easily useable in all programs....

How To Learn C#: A Roadmap to Success in Getting Started with C# Programming     
Total Hits: 3076  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

So you are interested in programming in C# (pronounced "C Sharp"). Getting started with a new programming language can normally take some effort and time. You need instructions, tools, and good examples to help you get started. In this article, I'll do just that, giving you tips and pointing you in the right direction....

.NET/COM Interop     
Total Hits: 583  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article will walk you through a contrived example of calling a VB6 COM object from a .NET console application written in C#....

Disclaimer - Privacy
© 2002-2015