Click here to Skip to main content
15,891,136 members
Everything / Programming Languages / C# 2.0

C# 2.0

C#2.0

Great Reads

by Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.
by Dark Daskin
Article describes how to build an assembly that exposes functions to unmanaged code without C++/CLI
by Waleed Elkot
Reading text from any image using Microsoft Office 2007 OCR
by Josh Smith
Reviews a pattern which enables new possibilities for data binding.

Latest Articles

by Shivprasad koirala
Design Pattern FAQ - Interview Questions (Quick Reference)
by Claudio Nicora
An extended NumericUpDown control with better focus and mouse wheel management.
by Toby Patke
Clearcove.Logging is a very simple logging library designed to meet most logging needs with straight-forward licensing terms.
by Alexander Iacobciuc
In this article you will find an implementation of a stream player control.

All Articles

Sort by Title

C# 2.0 

26 May 2010 by Mike Corley
C# (.NET and Mono) library provider for RRDtool
7 Nov 2010 by Jineesh TR
public void OpenSqlConnection(){ try { //Database connection properties string sConString = "Data Source=192.168.1.10,1433; Network Library=DBMSSOCN; Initial Catalog=MyDatabase;User=Admin;password=pswd"; //Creating New connection MyConn= new...
8 Nov 2010 by Fredrik Bornander
Shouldn't the port be separated from the IP using a colon instead?192.168.1.10:1433 rather than 192.168.1.10,1433?
28 Jun 2010 by wajans
I am getting "The connection was reset" error on my live server but its working okay on my local server. The thing is that I am having a drop down on a page, When the page is loaded drop down is filled with 2 values in it, I am able to select a value in the drop down and it is loading the...
26 Jul 2010 by Rajesh Sajjanar
Hi WajansCheck the following as soon as you get "the connection was reset" errorGo to DOS command prompt type ping "ipaddess of the server" and see if this is fine then do below settings in web.config fileThis...
18 Apr 2011 by curious_mind
hello In my Form I had used multiple container such as panel,group box.and as per my requirement i have to clear all the controls which are reside in container. For this i have wrote a code as follows:- foreach (Control x in ControlContainer.Controls)//Error { ...
18 Apr 2011 by OriginalGriff
That makes sense , depending on what kind of object you are using. If ControlContainer is not an instance of an object that derives from Control, then it will not contain a Controls list. ControlContainer sounds like a class, rather than an instance?Try:GroupBox gb = new...
18 Apr 2011 by Sergey Alexandrovich Kryukov
You need to use recursion in this case:static void CleanupTextBox(TextBox textBox) { //whatever cleanup you need}static void CleanupComboBox(ComboBox textBox) { //whatever cleanup you need}static void CleanupBoxes(Control parent) { TextBox textBox = parent as TextBox;...
26 Jan 2011 by OrlandoCurioso
Customize an internal designer by encapsulation in a custom component designer
3 Oct 2007 by User 2739121
21 Jan 2010 by aasifaslam
hi ,Please can anyone help me ?i m trying to call a function say getdevice();which is present in my unmanaged dll. the function in dll has parameters say getdevice(char **pDeviceList,int *pDeviceCount, unsigned longulFlags)actually i m using c# and doing coding in c# as well and my dll...
21 Jan 2010 by J a a n s
You can call your unmanaged methods using PInvoke. Check the folllowing articles for details.http://msdn.microsoft.com/en-us/library/aa446536.aspx[^]http://msdn.microsoft.com/en-us/magazine/cc164123.aspx[^]
1 Feb 2013 by Yvar Birx
Syntax highlighting has never been so easy!
14 Sep 2010 by Hossam443
i want to make a test connection module for my application which test if the server is found on a particular IP with user name and passwordsome of our servers don't have password so it is just a user name when i call the method to check the database connection this exception is...
15 Sep 2010 by Sandeep Mewara
It might be surface area configuration error or sql service configuration issue. Have a look at this thread for potential reasons and resolutions: Resolving A network-related or instance-specific error occurred while establishing a connection to SQL Server[^]If needed, See steps for setting...
20 Mar 2012 by vino2012
Hello, I want to read .APB extension file.I tried like reading .txt ,.docx. But can't able to get proper content.My extracted value containing special characters.txt_box.Text = ""; if (FileUpload1.HasFile) { string ServerMapPath =...
7 Feb 2011 by vijay.darji2
I was live my website about a few day ago. It was developed in ASP.Net, C#, and Ms access 2003, SQL server 2005 is used as a database. HTML page is display well, but when we open .aspx page it will not display and giving error. Please somebody help me to sort out this problem
7 Feb 2011 by Parwej Ahamad
Check with your provider, is he providing .Net framework support?
7 Feb 2011 by velmahesh
Check the Code based on Error Message..
14 Apr 2010 by Nuno M. F. Gomes
Finding out whether an assembly was compiled in Debug or Release mode is a task we must do from time to time...
11 Oct 2007 by aSarafian
An article that tries to clear up the concept of serialization.
27 Mar 2010 by Sergey Sorokin
Use .NET 2.0 configuration features for building a pluggable provider framework for your application.
6 Jan 2009 by carlos@takeapps
A working implementation of a REST service in .NET 2.0.
17 Dec 2007 by Balaji Lakshmanan
Using the Unicode version of CreateFileW, we can overcome the PathTooLongException error on file operations.
22 Mar 2007 by Sacha Barber
An article which shows how to achieve some of the common XAML concepts.
2 Nov 2012 by itsureshuk
Hi frnds, I have completed my .net windows application using C#(framework 3.5). Its small application with crystal reports,MS sql server 2008.I need to convert my application to .exe and after i need to install that application in some other Computer.I didnt installed .net framework,ms sql...
2 Nov 2012 by OriginalGriff
Converting to EXE is easy - it's called a build is all, but you need to select "Release" on the menu bar where it says "Debug" at present.The other requirements are more problematic.You can't necessarily just copy you exe file from one machine to another and expect it to work - there is a...
5 Sep 2007 by Boaz V
How to receive events from a COM object using the application message loop in a console application.
19 Apr 2012 by Sandeep Mewara
Here is what is expected by enquirers:1. TRY first what you want to do!2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face issues.Members will be more than happy to help like this.
19 Apr 2012 by fjdiewornncalwe
Wouldn't the logical step be to check out their site first? http://www.bigcommerce.com/[^]
22 Jul 2007 by Yuriy Kyyan
An article on creation automated interface for .NET applications.
13 Jan 2013 by saifullahiit
why don't you use timer and call the those functions in that timer which you want to run continually
6 Jan 2014 by Assil
This article describes asynchronous patterns in .NET and how to do them.
16 Aug 2010 by Shivprasad koirala
.NET Best Practice No: 1:- Detecting High Memory consuming functions in .NET code
9 Nov 2008 by dheerajindian
Small but important questions
29 Aug 2007 by hayles
This article shows you how to customize individual cells in a DataGrid - and it works on the Compact Framework.
30 May 2008 by Ricky Wang
This article concisely introduces StringTemplate with a practical .NET code generation example. The scenario includes common issues when it comes to code generation such as conditionally generating codes, loop, and token replacement.
25 Sep 2008 by tomcat1
Call a .NET COM+ Interop component with Classic ASP.
12 Jan 2009 by Rabeeh Abla
Design patterns are recurring sequences, built-in .NET patterns are scattered over the framework.
23 Jul 2011 by Geneous
Hi All,I am trying to consume .Net dll in ASP page but it is failing to create object. I have my code pasted below. Please let me know where I am wrong. My code is working in windows form, however just failing to create object in ASP page. I register my dll file like regasm...
13 Mar 2007 by Wilson, Drew
Evaluating Dynamic expressions by compiling C# code to IL, then creating a DynamicMethod from the IL.
27 Oct 2007 by carlos@takeapps
A basic .NET file browser fully based on the framework
11 Mar 2010 by fabianse
Base practice code for those preparing the exam 70-536 or learning the .NET framework basis
27 Aug 2009 by logicchild
An article to help clarify delegates and how to use them asynchronously.
22 May 2009 by logicchild
An article with a focus on object serialization.
10 Sep 2008 by Mayur Chauhan
An UI tool that can be used to zip and unzip a file.
28 Jul 2008 by John Kenedy S.Kom
This project enables developer to create a setup package that automatically installs SQL 2005 Express and restores database to it
30 Jan 2007 by TylerBrinks
How to call absolutely any .NET code from your Vista Sidebar Gadget
14 Dec 2009 by TheCodeKing
An easy-to-use, zero configuration solution to .NET communication across application boundaries. A simple library to use as an alternative to .NET Remoting based on low-level Windows Messaging.
4 Jan 2010 by TheCodeKing
The XDMessaging 2.0 library provides an easy-to-use, zero configuration alternative to existing IPC implementations.
6 Aug 2008 by SHRIDHAR TL
Compose mail messages and send them through your mail account provider.
26 Apr 2010 by Izzet Kerem Kusmezer
With this tool you can download whole .NET Framework source code at once, and enjoy offline browsing. With it, you can have whole the source code without any Visual Studio product installed
11 Sep 2006 by Russell Aboobacker
For displaying Error,Warning or Information Messages in your ASP.NET WebSite
9 Apr 2009 by SprinterDave
A native .NET library and application to view the PNGs embedded in a MNG
5 Mar 2007 by bjarneds
A tool for browsing public and private members in any running .NET application (and a generic InvokeRemote method that wraps the code injection).
3 Mar 2008 by Samuel Davidson
Customizable .NET poll control.
8 Feb 2008 by Wil Peck
This article provides an implementation of a POP3 MIME client using .NET 2.0 and C#.
29 May 2007 by Stefan Troschuetz
Presents a fully managed class library providing various random number generators and distributions
20 Oct 2006 by kurt.griffiths
Handy Regex test utility for .NET helps you get the right expression to use in your code
1 Jan 2008 by malikusman
DCOM component replacement in .NET is .NET remoting
3 Mar 2010 by Ron Beyer
Explains producing and consuming .NET remoting events, the drawbacks, and advantages.
17 Oct 2007 by cool_manu07
This application reads a .NET resource file and writes its contents to a Microsoft Excel file.
13 Jul 2008 by Rajneesh Noonia
The source code / article published here is to provide features of MS Script control (Functions like AddObject) and some features of VSA/Visual Studio editor like intellisence, code completion etc
28 Sep 2010 by Ganesh Harke
How to get network drives and its info in windows service of .net?????:confused:
28 Sep 2010 by aayu
this like will help youhttp://support.microsoft.com/kb/149984[^]Thanks & Regard Aarti.Thakkar (nemo) ===================================================================Do not Forget to Vote as Answer/Helpful, please. It encourages us to help you...:thumbsup::rose:
15 Dec 2008 by David Polomis
Loads a Targa image file into a Bitmap using nothing but .NET code.
5 Jul 2012 by Mario Ghecea
This article describes the technique I used to ingest large text files to create an e-book publishing platform on the Android Market
13 Sep 2007 by P.Adityanand
Understand the internals of .Net types from a CLR perspective
16 Nov 2006 by Tolga Birdal
This code includes lots of algorithms and desired code segments for .NET. Written entirely in C#.
22 Jun 2007 by Ivar Lumi
This article discusses how to create and parse vCards using a .NET vCard API
3 May 2016 by Southmountain
this post discussed .NET versioning and multi-targeting of .NET application and component written in C#.
19 May 2011 by premkumar.r
im working in windows application in C#..i want a simple demo project of hpw to connect the windows application to sql server 2005 using app.config file..
19 May 2011 by #realJSOP
I googled it and got back 18.4 MILLION results.Results for ".net connect to sql server"[^]Google reveals all.
19 May 2011 by Abhinav S
If you need help on storing connection strings in app.config, see here[^].
19 May 2011 by OriginalGriff
In VS, look at the Solution Explorer.Under your poject, open the "Properties" branch.Double click "Settings.settings"Add a user string called "ConnectionString"Close and save the settings.In your code:string conStr = Properties.Settings.Default.ConnectionString;using...
25 May 2009 by Serhiy Perevoznyk
A C# wrapper for the Info-ZIP library.
1 Sep 2008 by syntaxed
Notifier: an Outlook-like notification window
16 Sep 2011 by madhukrishnahere
Hi All,As per my projects requirements i need to create, open & print the document in .xps format.i need to implement it in asp.net (webapplication).Thanks & Best regards:Krishna
16 Sep 2011 by Morgs Morgan
It would also be good if you shared what you have done so far so that you can narrow your question to something specific...this is such a broad question and involves so much code people here will just wonder where to start from helping.Either way start off by knowing what XPS files are...
13 Mar 2012 by KamleshMaurya
www.seosoftwareservices.com[^]
11 May 2012 by Ruchika.techie
Hi I am also looking for the same kind of solution please help thanks in advance.regards:rashi
24 May 2007 by Liam Cavanagh
The purpose of this article is to help get a user started in building a mobile database application using SQL Anywhere and Visual Studio .NET (C#)
18 May 2007 by Liam Cavanagh
The purpose of this article is to help get a user started in building a mobile database application using Visual Studio .NET (C#).
14 Jun 2011 by Sacha Barber
100% Reflective Class Diagram Creation Tool
23 Mar 2010 by Eunge
The article introduces how to easily develop business solutions in RapidWebDev through developing a product management system with the special requirement step by step.
1 Jul 2009 by matheszabi-RO
In Internet Explorer webpage is embedded a C# user control and communication between the page and user control
5 Mar 2010 by raj of jss
How we draw 2d drawing on directx9.0. directx9.0 support 3d drawing but i want to know in 2d drawing? any example is beneficial....Thanxs in advance...... :laugh:
5 Mar 2010 by Teuz
Why you guys dont search around before asking? Download DirectX SDK and you will find examples.
14 Feb 2008 by vikas maan
Draw primitive graphics on your window.
13 Feb 2012 by Christian Graus
This is obviously homework. We're not going to tell you what to do if you won't even try. I would write a class that contains the boy and girl names, but you can do a 2D array of both names, if you like. Then it's quite simply a matter of looking up the right name by index. If you have no...
13 Feb 2012 by Beansenu
I feel i have to comment on the atitude of the expect i encounted here. I did not enjoy it. I felt suspicious . all questions posted here are homework in one way or the other.part of homework is to learn to look for help to answers when one wish to continue to sucess.I post a statement...
25 Mar 2013 by Md.Arifur Rahman Paragh
I made an application using vs2005 that is 32 bit. This application does not run in 64 bit operating system. How to solve this problem?
25 Mar 2013 by Rohit Kumar Mumbai
You have to build Application by selecting Configuration Manager and Platform as x64. Build the application and run the same on 64 bit pc.
25 Mar 2013 by Prasad_Kulkarni
Refer following thread:How to run a Visual Studio application as 32-bit on a 64-bit machine[^]
20 Sep 2006 by Dragos Sbirlea
Have you ever imagined having 3D objects float on your desktop? Lets see how we can achieve such a result using only C# and WPF.
21 May 2009 by Tommi Laukkanen
A KD-Tree which stores axis aligned boxes.
4 May 2009 by Shivprasad koirala
4 steps to create free SSL certificate for development
24 Mar 2009 by Shivprasad koirala
4 steps to use readymade DAL component (Data application blocks)
18 Apr 2007 by Liam Cavanagh
The purpose of this article is to show how to add data replication to a mobile application through the use of .NET (C#).