Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / .NET / .NET2.0

.NET2.0

.NET2.0

Great Reads

by Ed Gadziemski
A collapsible split container control for Windows Forms
by Joydeep Sen
learn how to attach event with an object and how to create custom eventargs for beginners
by Aydin Homay
In this article, I tried to show a real benchmark based on presser test method, for a Big Data collection deals on C++, C#, and VB.NET.
by Mike Corley
C# (.NET and Mono) library provider for RRDtool

Latest Articles

by Ed Gadziemski
A collapsible split container control for Windows Forms
by Joydeep Sen
learn how to attach event with an object and how to create custom eventargs for beginners
by Aydin Homay
In this article, I tried to show a real benchmark based on presser test method, for a Big Data collection deals on C++, C#, and VB.NET.
by Mike Corley
C# (.NET and Mono) library provider for RRDtool

All Articles

Sort by Score

.NET2.0 

by Vinayaka Krishna Shenoy
.Net Performance tip - 2
by DaveAuld
Here is a better evaluation of performance in .Net of the If / Switch operations;http://www.blackwasp.co.uk/SpeedTestIfElseSwitch.aspx[^]
by Vinayaka Krishna Shenoy
.Net Performance tip - 3
by cesar_boucas
A custom derivative of ServiceHostFactory to control how WCF service hosts are created.
by Sambhav Yadav - Sam D Silva
ASP.NET page/master page/user control's life cycle from the perspective of Session and View State
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.
by bobishkindaguy
A simple entry box for various numbers, especially phone numbers.
by Michael Rosqvist
If you want to measure something on the screen, here is a utility.
by HiDensity
Class providing methods to count up a string using a definable character set.
by Mukund Thakker
Android GCM Push Notification
by Yossi Yaari
A basic yet generic state machine implementation
by TheCoolCoder
Numbering for Multilevel ASP.Net Treeview using CSS Counters
by nasir_ml
ASP.NET textbox validation made easy.
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...
by Robby Tendean
Simple implementation guide for log4net in a VB.NET web application.
by Matthias Böhnke
Bug Fixes for Reading Barcodes from an Image - III
by Emiliarge
Both MS Access formats (mdb and new - accdb), MSSQL 2008 R2, MSSQL CE, SQLite, MySQL
by Emiliarge
Read and write data to Access databases without limitations caused by the use of the SQL.
by Darkencrow
A multi-drawer style collapsable UI container
by Emiliarge
2 ways to read and write data to *.xls and *.xls files and display it on DataGridView.
by Qwertie
A fast and simple algorithm.
by abhinavshastri
How to Call WebService Dynamically and Read WebService Definition
by Kaveh Yazdi Nezhad
A simple solution to capture entire HTML code of a web page which is displaying on Internet Explorer
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...
by Fenil Desai
Check which .NET Framework version is installed from command line
by Gandhi Ashish
Checking Internet Is Connected Or Not From .NET
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...
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 -...
by Raju_B
Code behind JavaScript
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...
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
by Peter T. Ringering
A complete replacement to Microsoft's Date/Time Picker control.
by KK Kod
How to compress JavaScript and CSS files in a web application to reduce page loading time, using GZIP.
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.......
by Anshul R
The Perfect Translation/Conversion of Code
by FatzBomb
How to convert a written number to a numerical value anywhere in a string.
by Shru37
Modified code from another article to consider field repetitions while converting HL7 message to XML
by Thava Rajan
Copy and insert data at any postion in your datagridview
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.
by Kirankumar Chauhan
Global Resorce File Creation in json Format using ASP.NET
by Aadhar Joshi
Creating job in sql server which automates taking backup of all stored procedures and functions in physical drive.
by Sreedhar Puligundla
Simple steps to create SQL joins by using SQL Server 2008 Management Studio
by Nirav Prabtani
CTE Query for optimizing complexity of query in sql server
by Avatar2400
This is a simple class that allows you to have message box with checkbox and other small features.
by Monotosh Roy Mon
XML Serialization & Deserialization for converting our object to XML and XML to Object
by Yugal Pandya
Database driven N-Level Dynamic Menu Control using C#.NET and SQL Server with stylesheet CSS
by Muhammad Ahmed Azam
"Database Driven Dynamic Menu Control"
by crackruckles
Days Left Timer VBS self deleting
by Tawani Anyangwe
A dead simple HTML Sanitizer (and HTML Parser) you can use to clean user HTML input.
by Hassan Alrehamy
JSON Deserialization in depth concept and Dictionary mapping. Special Thanks to Dr. Coral Walker
by TnTinMn
UpdateDefaultButton - Allows detecting change in ActiveControl
by Minh Danh Nguyen (ToughDev)
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...
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 ...
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:...
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()); }
by jkirkerx
Basically a slideshow script, but more simple in design and easier to deploy.
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...
by Ankush Bansal
Trick to draw a border of any color and width around any winform control
by Amin Esmaeily
This trick is about how to effectively reduce reserved memory by process.
by Shailesh Pisat
Provides ready to use library for sending email using SMTP
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.
by PIEBALDconsult
A Dictionary that is constrained to hold only the defined members of an enumeration
by Member 3783976
Implement function in C# to emulate functionality of mysql_real_escape_string() C API function.
by apis3445
With C# and the Windows API, you can execute a program in a second monitor.
by JRINC
Connect to remote socket via System.Net.Sockets.Socket.Connect method with timeout controlled by System.Threading.Timer
by AshishChaudha
This tip describes how to export data to an Excel file from a GridView.
by alwaysrun
Find the files that have the same contents in under special folder
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[^].
by Technoses
Get Month Name from Month Number or vice versa
by Manoj K Bhoir
A Glass style progress bar
by atlaste
How to fix hiding controls in the Visual Studio user control designer
by the retired
High performance C# byte array to hex string to byte array.
by Your Display Name Here
How to use WebBrowser, a form, and an MDI parent to open Excel files
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....
by Milad Ashrafi
We need this script for database based ASP.NET websites for using HTML content in post pages.
by Abhay@Accenture
How to bind Derived Type in MVC View
by Shridhar Gowda
This tip will give complete knowledge of how to change master page, render controls and accessing its eventhandlers @ runtime.
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) { ...
by Vivek_Sharma
Convert GridView data to Excel, PDF, Word file using C#
by Mike Meinz
Source code to demonstrate the creation of a new task in Windows Task Scheduler.
by Dread_Sharp
How to build an easy plugin system with C# which only takes about 30 lines of code!
by Sunil P V
How to access a 64bit registry key from 32bit built application in .NET 3.5 and lower
by Souvik Das, MCP, ITIL
Code to help download an image file as a Zip file using C# and J#.
by KazMaxLtd
This article describes how to hide or show TabControl tabs at runtime
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...
by Nelson Kosta Souto
Run .NET Windows forms 2.0 on Ubuntu 13.04
by AdamNThompson
A reusable component for makeing REST service requests using C#
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.
by Kees van Spelde
To encrypt or not to encrypt with C# .NET
by BenScharbach
How-To Convert a String Collection to a Multi-Enum item using TryParse
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...
by Rajesh Buddaraju
A simplified example is used to describe the state pattern
by VaibhavTiparadi
Re-sizing images to equalize the width & height
by Ahsan Murshed
This article gives ideas to developers to increase development time productivity using the free Visual Studio 2010 extensions.
by barrd
Fix an exception related to ISupportInitialize.BeginInit and learn why it happens.
by Silvercorer
JavaScript validation for textbox special character selection
by drewman5150
Simple jQuery ASP.NET Slideshow
by maz2331
License Key class to make generating and validating keys easy.
by joejames111
Raw input 64-bit .NET classes.
by Yossi Yaari
A solution for monitoring Events called during test.
by Stephan Stricker
A Modbus TCP class.
by Kouji Matsui
This library is simple and is a substitution of System.String.Format.
by BrokenEvent
Simple and fast .NET XML parser without using System.Xml
by textorijum
How to SIMPLY populate TreeView from some sort of "list" variable / object / structure
by Thomas Daniels
A tip about how to set the position of a Windows Forms MessageBox in C#
by ajaynarewade
This is helper class to post serialized objects (Data) to other page in asp.net.
by bmatha
Contains the custom control (Predictive Search Control) developed in .NET Framework 2.0
by Demid Korneev
Example of AltNETType use in OpenGL
by PIEBALDconsult
Attempts to resize a Form to show the entire table of a DataGridView
by Philipp_Engelmann
This tip describes how to resize an existing image (e.g. uploaded by a user) so it does not exceed a defined size limit.
by Tyronne Thomas
Resolving a hostname in C#
by Technoses
Partial downloading of files.
by The Tigerman
Work in progress, but a simple HTML to RTF converter
by Nelson Kosta Souto
Running the same compiled assembly on Windows and Linux.
by Rishikesh_Singh
The article displays how to save user setting or preference at run time.
by Gautham Prabhu K
Creating and using Service Locator pattern
by Hossein Shahpouri
Learn how to share ASP.NET sessions on different websites
by Pasan Eeriyagama
Simple Application Error Logging
by Ritesh Ramesh
Using reflection to build a templating engine
by Darren DeLoach
Sometimes you need a WSE3 client to send an MTOM-encoded request, but accept either an MTOM or non-MTOM response. While the WSE3 server classes support "MTOM optional" the client does not. Here's a quick solution to the problem.Assume you have generated your WSE3 web service proxy class....
by Hernán Hegykozi
Show you how to make a connection dialog developed completely from scratch.
by Mohammed Hameed
Check-in/Check-Out mechanism for TFS - To avoid Build errors and improve productivity.
by munagalasantosh
Get all the array index where the sum equals or is greater than some x value
by wmjordan
Generic Lists or Generic Types contravariance without casting.
by Juan Francisco Morales Larios
Useful Actions for debugger in System.Diagnostics
by Nishith Jain
Balloon tool tip for the text box.
by AnuragTripathi
Convertor for Unicode to Krutidev and vice-versa.
by Richard Roe
Example to show how to update an ASP.NET GridView control using Ajax JQuery client side script
by Madhav Shastri
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Globalization;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { //String s = "17-03-2010"; //DateTime...
by Technoses
This process can be used for management of bulky and long processes.
by Wombaticus
A beginner's introduction to using data classes in ASP.NET.
by wmjordan
Compile extension method targeting .NET 2.0 only
by Mohamed Amine Aboura
Using Google Search By Image within your .NET application
by heemanshubhalla
How to use Masked Textbox control in .NET
by Anton Pious Alfred
The MVC Pattern was first conceptualized assuming all the three actors were present at one place. Since Web Applications have both a client and a server this needs to be applied differently without technology bias.
by Jacky Yiu
Visual cryptography is a cryptographic technique which allows visual information (pictures, text, etc.) to be encrypted in such a way that the decryption can be performed by the human visual system, without the aid of computers.
by KRISHNA PRASAD.N
This paper would provide a small code snippet which will report all files from VSS (Visual SourceSafe 6.0) with shared reference instances. It will be useful for migrating files from VSS to TFS.
by Anup Kumar Verma
Printer independent Watermark on webpage print in asp.net & C#
by In the Face of God
Generalize to access data in a database via HTTP
by Jesusfan
Create a draggable, proper splash screen in DotNet, with gradient transparency!
by alifaraze
writing error in a text file is very easy but writing error from a custom assembly in reporting services requires permissions
by Md. Rashim Uddin
XML Serialization and Deserialization in c#
by Praveen Kumar Chauhan (PRK)
Sending Data Through XML to web Services