Click here to Skip to main content
15,889,281 members
Everything / .NET / .NET 2.0

.NET 2.0

.NET2.0

Great Reads

by Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.
by Steve Krile
Fully AJAX-enabled user control used to select names from a database in a drop-down format.
by Waleed Elkot
Reading text from any image using Microsoft Office 2007 OCR
by dotnetdan
VS 2005 debug visualizers for DataSet, DataTable, DataView, DataRow and DataColumn objects.

Latest Articles

by Shivprasad koirala
6 steps to enable transactions in WCF
by Shivprasad koirala
This article explains plug and play architecture using policy application blocks.
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.

All Articles

Sort by Title

.NET 2.0 

22 May 2010 by Vinayaka Krishna Shenoy
.Net Performance tip - 2
22 May 2010 by DaveAuld
Here is a better evaluation of performance in .Net of the If / Switch operations;http://www.blackwasp.co.uk/SpeedTestIfElseSwitch.aspx[^]
22 May 2010 by Vinayaka Krishna Shenoy
.Net Performance tip - 3
8 Sep 2008 by cesar_boucas
A custom derivative of ServiceHostFactory to control how WCF service hosts are created.
26 Nov 2014 by Sambhav Yadav - Sam D Silva
ASP.NET page/master page/user control's life cycle from the perspective of Session and View State
14 Jan 2020 by David A. Gray
The routines in this library can parse any string that I can throw at it, including Common Name strings read from X.509 Digital Certificates.
2 Dec 2009 by bobishkindaguy
A simple entry box for various numbers, especially phone numbers.
30 Apr 2013 by Michael Rosqvist
If you want to measure something on the screen, here is a utility.
27 Jan 2015 by HiDensity
Class providing methods to count up a string using a definable character set.
6 Aug 2012 by Mukund Thakker
19 May 2013 by Yossi Yaari
A basic yet generic state machine implementation
5 Oct 2012 by TheCoolCoder
Numbering for Multilevel ASP.Net Treeview using CSS Counters
9 Jan 2014 by nasir_ml
ASP.NET textbox validation made easy.
11 Feb 2010 by Amit M patel
How to code for Delegate In this artical explains basic understanding for delegate and how to create nad use delegate. This code for .net framework for C# This artical is usefull...
16 Jan 2012 by Robby Tendean
Simple implementation guide for log4net in a VB.NET web application.
5 Jul 2012 by Matthias Böhnke
Bug Fixes for Reading Barcodes from an Image - III
18 Aug 2014 by Emiliarge
Read and write data to Access databases without limitations caused by the use of the SQL.
6 Mar 2015 by Darkencrow
A multi-drawer style collapsable UI container
30 Aug 2014 by Emiliarge
2 ways to read and write data to *.xls and *.xls files and display it on DataGridView.
4 Jun 2013 by Qwertie
A fast and simple algorithm.
17 Apr 2012 by abhinavshastri
How to Call WebService Dynamically and Read WebService Definition
14 Jun 2014 by Kaveh Yazdi Nezhad
A simple solution to capture entire HTML code of a web page which is displaying on Internet Explorer
18 Feb 2010 by Ank_ush
How to change the background color for an MDI parent form in Visual C#This article demonstrates how to programmatically change the background color for a multiple-document interface (MDI) parent form by using Visual C#.When you use a Windows Form as an MDI parent form, the Application...
1 Nov 2012 by Fenil Desai
Check which .NET Framework version is installed from command line
25 Dec 2011 by Gandhi Ashish
Checking Internet Is Connected Or Not From .NET
16 May 2011 by J a a n s
For C# guys....using System ;using System.Runtime ;using System.Runtime.InteropServices ;public class Internet{ [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState( out int Description, int ReservedValue ) ; public static bool...
27 May 2011 by Anshul R
Dim value As Boolean = My.Computer.Network.IsAvailable can be used in a situation where the only network a system will be connected to is the Internet.Dim value As Boolean = My.Computer.Network.Ping(hostNameOrAddress ,timeout) hostNameOrAddress can be any valid website -...
16 May 2010 by Hemant__Sharma
I always find this thing while doing code reviews and that is a performance issue. The above point I haven’t found anywhere as a performance issue, so I thought to share it.Scenario: There is a function in which one need to extract 10-20 values from an object for example a column value from...
10 Sep 2009 by Abhishek Sur
It is to be noted, .NET has lately introducedResponse.RedirectParmanent() after a long await. The main motive of this is tohave permanent response redirection to the Search Engines.Response.RedirectParmanent() is an extension function introduced in .NET 4.0.Themain motive of it is to indicate
8 Aug 2013 by Peter T. Ringering
A complete replacement to Microsoft's Date/Time Picker control.
30 May 2013 by KK Kod
How to compress JavaScript and CSS files in a web application to reduce page loading time, using GZIP.
12 Mar 2010 by boblogan
GCSSecurity (34.9 KB)IntroductionHands off crypto - useful for protecting app.config values and performing install time machine fingerprinting...BackgroundRecently I was asked to provide better security / encryption on several data items normally contained within a CONFIG file.......
10 Jun 2010 by Anshul R
The Perfect Translation/Conversion of Code
7 Jun 2013 by FatzBomb
How to convert a written number to a numerical value anywhere in a string.
27 Jul 2015 by Shru37
Modified code from another article to consider field repetitions while converting HL7 message to XML
28 May 2014 by Thava Rajan
Copy and insert data at any postion in your datagridview
1 Aug 2014 by Bryan Lyman
A method for duplicating a web page (including all scripts and styles) to run as if it originated from your own server, then modify server-side and client-side functionality afterwards.
27 Nov 2012 by Aadhar Joshi
Creating job in sql server which automates taking backup of all stored procedures and functions in physical drive.
20 Sep 2012 by Sreedhar Puligundla
Simple steps to create SQL joins by using SQL Server 2008 Management Studio
20 Jan 2014 by Nirav Prabtani
CTE Query for optimizing complexity of query in sql server
11 Sep 2016 by Avatar2400
This is a simple class that allows you to have message box with checkbox and other small features.
25 Oct 2013 by Monotosh Roy Mon
XML Serialization & Deserialization for converting our object to XML and XML to Object
15 Jan 2013 by Yugal Pandya
Database driven N-Level Dynamic Menu Control using C#.NET and SQL Server with stylesheet CSS
6 Oct 2013 by Muhammad Ahmed Azam
"Database Driven Dynamic Menu Control"
29 Jun 2010 by crackruckles
Days Left Timer VBS self deleting
18 Jan 2013 by Tawani Anyangwe
A dead simple HTML Sanitizer (and HTML Parser) you can use to clean user HTML input.
28 Apr 2015 by Hassan Alrehamy
JSON Deserialization in depth concept and Dictionary mapping. Special Thanks to Dr. Coral Walker
25 Feb 2013 by TnTinMn
UpdateDefaultButton - Allows detecting change in ActiveControl
24 Mar 2010 by mdanh2002
Depending on system preferences (in Control Panel/Sounds), the .NET WebBrowser control (just like Internet Explorer) may produce a click sound when changes are made programmatically to its DocumentText property, which is irritating to the user.There are two ways to avoid this:1. Use...
20 Dec 2011 by emolina
Public Sub DisableSound() Dim keyValue As String keyValue = "%SystemRoot%\Media\" If Environment.OSVersion.Version.Major = 5 AndAlso Environment.OSVersion.Version.Minor > 0 Then keyValue += "Windows XP Start.wav" ElseIf Environment.OSVersion.Version.Major = 6 Then ...
21 Dec 2011 by Member 8208766
To me the second method was problematic. After searching, I found an apparently equally good solution:webBrowser1.DocumentText = text;or in your case:webBrowser1.Document.Write("Hello, world!");from here:...
1 Mar 2012 by pipiscrew
nah, try the light one ://at FormLOAD WB.Navigate("about:blank"); //at treeview event private void treeview_AfterSelect(object sender, TreeViewEventArgs e) { WB.Document.Body.InnerHtml = (dR["html"].ToString()); }
25 Mar 2013 by jkirkerx
Basically a slideshow script, but more simple in design and easier to deploy.
17 May 2010 by Daniel Ben-Sefer
Album Example - 5.68 MBIntroductionI often have the need to show pictures with captions as seen above.My objective is to be able to do so dynamically, so that all I need to do is to create a folder on my PC whose name equals the title of the page ("Sample Pictures" in the image...
9 Jan 2016 by Ankush Bansal
Trick to draw a border of any color and width around any winform control
15 Jun 2014 by Amin Esmaeily
This trick is about how to effectively reduce reserved memory by process.
14 Sep 2013 by Shailesh Pisat
Provides ready to use library for sending email using SMTP
24 Apr 2014 by Arvind Singh Baghel
I am writing code to encrypt password in connection string in config file and decrypt password while getting connection from config file.
5 Jan 2016 by PIEBALDconsult
A Dictionary that is constrained to hold only the defined members of an enumeration
25 Oct 2012 by Member 3783976
Implement function in C# to emulate functionality of mysql_real_escape_string() C API function.
12 Mar 2014 by apis3445
With C# and the Windows API, you can execute a program in a second monitor.
10 Dec 2013 by JRINC
Connect to remote socket via System.Net.Sockets.Socket.Connect method with timeout controlled by System.Threading.Timer
17 Dec 2012 by AshishChaudha
This tip describes how to export data to an Excel file from a GridView.
31 Aug 2012 by alwaysrun
Find the files that have the same contents in under special folder
23 Sep 2010 by Syed Shabeer
29 Sep 2010 by BillW33
Instead I would use double buffering. Just use the linethis.SetStyle(ControlStyles.AllPaintingInWmPaint |ControlStyles.UserPaint | ControlStyles.DoubleBuffer, true);There is a nice article on double buffering Win Forms here[^].
13 Jun 2012 by Technoses
Get Month Name from Month Number or vice versa
26 Apr 2012 by Manoj K Bhoir
A Glass style progress bar
14 May 2014 by atlaste
How to fix hiding controls in the Visual Studio user control designer
27 Aug 2012 by the retired
High performance C# byte array to hex string to byte array.
8 Dec 2009 by Your Display Name Here
How to use WebBrowser, a form, and an MDI parent to open Excel files
27 Jan 2010 by osiris mckinney
My contribution to my fellow developers & to make our life easier. The following code allow the user to filter out a gridview depending on their Selection. 'Here is the Complete Code Behind that handles the GridView and 4 'Different DropDownlist each one representing a Filter....
7 Oct 2014 by Milad Ashrafi
We need this script for database based ASP.NET websites for using HTML content in post pages.
9 May 2013 by Abhay@Accenture
6 Feb 2015 by Shridhar Gowda
This tip will give complete knowledge of how to change master page, render controls and accessing its eventhandlers @ runtime.
27 Jun 2012 by Technoses
The above code will slow down the browser and the browser can hang when Rows in Grid will be 10000 or above.Please view the below suggestion:CS Codeprotected void grvGroups_RowDataBound(object sender, GridViewRowEventArgs e){ if (e.Row.RowType == DataControlRowType.DataRow) { ...
7 May 2012 by Vivek_Sharma
Convert GridView data to Excel, PDF, Word file using C#
14 Jun 2013 by Mike Meinz
Source code to demonstrate the creation of a new task in Windows Task Scheduler.
15 Feb 2013 by Dread_Sharp
How to build an easy plugin system with C# which only takes about 30 lines of code!
20 May 2013 by Sunil P V
How to access a 64bit registry key from 32bit built application in .NET 3.5 and lower
13 Nov 2011 by KazMaxLtd
This article describes how to hide or show TabControl tabs at runtime
20 Nov 2011 by Bernhard Hiller
That's far too obscure.All you need to do is store a reference to the TabPage instance which was removed from the TabPages collection of the TabControl. You may use the form where the TabControl is placed for that purpose.You could also create your own TabControl which has an extra property...
26 Dec 2013 by Nelson Kosta Souto
Run .NET Windows forms 2.0 on Ubuntu 13.04
21 Nov 2012 by AdamNThompson
A reusable component for makeing REST service requests using C#
13 Jun 2012 by Ravi Lodhiya
An attacker would point to a “harmful” web site or content and you would only see a short URL which would not tell anything about the original URL.
1 Jan 2014 by Kees van Spelde
To encrypt or not to encrypt with C# .NET
14 Feb 2014 by BenScharbach
How-To Convert a String Collection to a Multi-Enum item using TryParse
17 May 2010 by girlprogrammer
In a class, when we preceed a class member (variables/methods) with the keyword "static" in C# or "shared" in VB.Net then the 2 things gets added to the behavior of the variable:-The class member could be accessed without creating instance of the class. The class member will shared across...
29 Dec 2015 by Rajesh Buddaraju
A simplified example is used to describe the state pattern
19 Apr 2013 by indianDEV
Re-sizing images to equalize the width & height
30 May 2012 by Ahsan Murshed
This article gives ideas to developers to increase development time productivity using the free Visual Studio 2010 extensions.
29 Mar 2012 by barrd
Fix an exception related to ISupportInitialize.BeginInit and learn why it happens.
31 Mar 2014 by Silvercorer
JavaScript validation for textbox special character selection
24 Apr 2013 by drewman5150
Simple jQuery ASP.NET Slideshow
10 Jul 2014 by maz2331
License Key class to make generating and validating keys easy.