Click here to Skip to main content
14,302,993 members

.NET

Great Reads

by Alex Pumpet
A simple program for compare table data from two sources - SQL databases, Excel, CSV or XML-files.
by Mark J. Caplin
Developing a Microservices architecture with back-end Message Queuing Services to support a front-end Angular 6 application built with Angular Material Design
by John Atten
The tools and architectural patterns we use to build and evolve web applications have undergone dramatic change over the past few years.
by Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.

Latest Articles

by Brad Joss
Alter your clipboard contents before pasting to automate tasks
by Greg Utas
Robust applications framework in C++. Includes a static analysis tool and two applications.
by Robert Gustafson
I've created an enhanced version of the Extended RichTextBox created by Razi Syed.
by Christ Kennedy
an easy way to down-load oodles of files without getting your hands dirty

All Articles

Sort by Score

.NET 

2 Sep 2013
Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
19 Sep 2019U
Robert Gustafson
I've created an enhanced version of the Extended RichTextBox created by Razi Syed.
20 Apr 2012
OriginalGriff
There is a common theme in development: storing data files in the application folder. This is bad, and wrong, and should be stamped on!
8 Aug 2013
Ravi Rachchh
Create and deploy custom timer job definition programatically in SharePoint.
23 Aug 2012
Vitaly Tomilov
Simplest and quickest way to automatically bind array of image bytes to asp:Image object.
5 Sep 2012
Tushar K. Skype(tushar.kshirsagar24)
This is a simple ticket printing system that I have prepared for programmers who want to learn how to do receipt like printing.
8 Apr 2015
Michael Sydney Balloni
How to improve on .NET memory management for large objects
8 May 2019
Bruno Tabbia
Automatic positioning and resizing of explorer windows, without overlapping (for obsessive superusers)
15 Jul 2017
dsuryd
SignalR is great for building real-time web functionality. MVVM is great for developing your front-end. What if they can be used together? This tip will show how to do just that, using as example a simple project to do live chart on a web browser.
24 Feb 2010
C. Groß
The WebBrowser.Document.InvokeScript() method claims to provide a way to interact with JavaScript code inside of a WebBrowser HTML document. Trying to mess around with a third-party JavaScript over which I had no control (meaning: included in an external webpage that I could not alter), however,...
10 Dec 2012
Fabrizio Stellato
Prepare an installer that verifies the system's architecture and that .NET is installed.
14 Dec 2015
Darek Danielewski
Sometimes, you just must return multiple values from a method. Instead of specifying out or passing arguments by reference, consider an OperationResult class.
27 Dec 2017
Alberto M.
How to control TP-Link Smart Plug (HS100 or HS110) with C#
10 Jul 2018
Viktor Kovács
Parallel foreach loop implementation for nested loops
16 Mar 2010
Bill9603
Many developers use ".cur" cursor files. Using them myself in Visual Studio 2008, they are not the easiest things to work with for many reasons.They are not easy to create without expensive software. (unless you are using the editor within Visual Studio)They cannot easily be ported in the...
1 Oct 2013
Erika Chinchio
In this article I will explain how to automate the process of downloading files with the open/save dialog box, protected by authentication.
19 Dec 2014
OKarpov
How to use ASM in C#.NET and most fast memory copy method
22 May 2010
#realJSOP
1 alternative  
Don't drink the kool-aid. You still need to know how to use the Windows API in .Net apps.
29 May 2010
becker666
Sample working C# code to carry the IPN
19 Apr 2012
Deepak_Sharma_
This article will show how to create an auto-suggest TextBox that will suggest data from a SQL Server database column.
3 Sep 2011
Phil Atkin
1 alternative  
A surprising and potentially destructive 'feature' of the .NET garbage collector
15 Feb 2013
Dread_Sharp
How to build an easy plugin system with C# which only takes about 30 lines of code!
22 Oct 2014
Mathew Soji
This tip guides through implementing a basic REST based Web API service with multiple GET methods and its consumption using JQuery client
28 Nov 2011
Akos Orban
Set Owner of a WPF Window to a Form
10 Feb 2011
Robert Rohde
This one should outperform both the other methods for longer strings because of the StringBuilder.string s = "AbCdEfGhI§$%&/()1234567890";var sb = new StringBuilder(s.Length);foreach (char c in s) sb.Append(char.IsUpper(c) ? char.ToLower(c) : char.ToUpper(c));s =...
22 Jan 2013
Srinivasu Pemma
This tip provides an easy way of dealing with different types of data sources for LINQ Group By taken from my blog http://www.srinetinfo.com/2012/12/linq-group-by.html
24 Jan 2010
Md. Marufuzzaman
Using of .NET TransactionScope
19 Mar 2012
Rishikesh_Singh
The article displays how to save user setting or preference at run time.
21 Oct 2013
Member 7874525
This how you can monitor your database changes
22 Jul 2013
Igor Ladnik
An interesting code illustrating the influence of Just-In-Time (JIT) compilation in .NET on code formation.
14 Dec 2014
MarkLTX
Automatically implement INotifyPropertyChanged for every property in Entity Framework 6.0 entity classes
16 May 2015
Mark Heath
Learn how to get started with MahApps.Metro, an open source library for giving your WPF applications a modern look and feel.
2 Jul 2015
Bharat Mallapur
Sample project to host MS-Chart in your WPF application
21 Oct 2015
OriginalGriff
A simple "scratch card" like control for Winforms, where the user can reveal the image by "scratching off" a cover
28 Jun 2018
Gunnar S
Implementation of the Poisson Cumulative Distribution function for large Lambdas
16 Nov 2010
Olga Tabulov
1 alternative  
Ever tried to put a break in the textbox of the rdlc report? \n and such don't work...
16 Feb 2011
jim lahey
Or you could just pop over to:http://www.connectionstrings.com/[^]Use the exhaustive samples they provide and not hard code your connection strings by using a standard .NET configuration file:http://msdn.microsoft.com/en-us/library/1xtk877y.aspx[^]
30 Mar 2013
OriginalGriff
Working with an Age (as in a persons age) is not the same as a Timespan, and there is no simple way to return an age. This provides a class to solve this.
19 Aug 2013
luivis7
A simple example of how to use jQuery Autocomplete to make an AJAX call to WebAPI in an MVC4 application.
9 Dec 2013
dietmar paul schoder
How to get the location of a specific IP-address
6 Jun 2014
Amir Mohammad Nasrollahi
How to list the installed applications of your system and their setup details in C# language
18 Jul 2014
Matthew Givens
How to change databases at run-time in a user-friendly manner.
30 Sep 2014
WaqaarRasool
Heartbeat Implementation in WCF Service in C#
24 Apr 2015
arora.abhishek
In this tip, we will learn about the new feature of C# 6.0, the Null Propagation Operator.
5 Jul 2017
Andreoli Carlo
In our company, we find ourselves in need of using the internal PC (buzzer) on Windows7 64bit. At the end, we figured out how to do it.
12 Feb 2016
Martin Gmuca
A brief introduction to Windows 10 IoT development
11 Jun 2016
TheForceIsSharp
ASP.NET Core Web API, Multiple Get or Post methods with single controller
12 Jan 2019
akshay_zz
This article will provide you the alternative way to navigate page in a crystal report viewer, as default paging looks broken
16 Nov 2010
alrosan
How to change input language
19 Jul 2013
Mannava Siva Aditya
Uploading a file and creating a Zip file in ASP.NET with C#.
13 Aug 2013
Le Sourcier
This tip helps in using font icons as ImageSource.
30 Oct 2014
Dan Hu
Demonstrate how to use .NET Cryptography library to create a file encryption/decryption tool
11 Jan 2015
Muhammad Hassan Tariq
Glimpse Extension for server side debugging and diagnostic information of ASP.NET applications
12 Mar 2015
Ivan Yakimov
In this article I'll explain how to make something similar to load balancer on your single developer machine.
24 Jun 2015
Nadun Liyanage
This tip describes creating a user control to display a drop down calculator that pops out like the DateTimePicker in Visual Studio
20 Oct 2015
Manish Dubeyy
How to debug the design time errors in WPF XAML file?
26 Nov 2016
JamesFaix
Get a collection of all running Excel interop Application objects (not just the active one)
22 Apr 2016
Darryl Bryk
1 alternative  
C# code for a low-pass Butterworth filter is presented
15 Mar 2017
Ricardo_Torres_Torres
Read text file and insert mutiples records in just one SQL Sentence
6 Apr 2011
#realJSOP
Never assume you know what the framework is going to do
16 Jan 2014
Tom Glick Philadelphia, US
POC to demonstrate passing of collections of complex objects to ASP.NET Web API Controllers.
9 Apr 2015
Royston Malcomber
Setting up Google reCaptcha version 2 with MVC5
12 Apr 2015
Jeffijoe
Writing properly formatted, grammatically correct, translatable UI messages
26 Sep 2015
AshishShukla6
This tip describes step by step implementation of executing stored procedure having user-defined table type as a parameter in entity framework using EntityFrameworkExtras package.
1 Oct 2015
Clifford Nelson
Presents a behavior to prevent entry of anything but digits into a control
20 Feb 2019
Steffen Ploetz
How to compile and run the first C# application in ReactOS
11 Oct 2017
Clifford Nelson
This tip presents a way to display checkboxes for selection of ListBox Items instead of the default highlighting
8 Jun 2012
Clifford Nelson
You can implement BackgroundWorker using Lambdas without any sort of helper class very easily.
26 Aug 2012
Wendelius
1 alternative  
The tip shows one way to resolve if a user control is in design mode.
5 Dec 2012
tumbledDown2earth
Using dynamic or ExpandoObject is a breeze to dynamic data WebAPIs, but when serializing to XML, it can cause a brain damage sometimes :)
7 Jul 2013
Behrooz Bahrameh
This tip describes how to read Excel files and make an array of objects from Excel.
14 Aug 2013
adriancs
A program/application for learning and writing HTML. Get instant visual effect side by side with your code as you type. Support HTML5, Javascript and CSS3 elements.
21 Mar 2014
sagar_253
Listview column sort and set sort column icon (ascending/desceding)
22 Oct 2014
Kalvin Lawrence Ernst
Generate a web app instantly, directly from a database(SQL Server)
11 Nov 2014
Sibeesh KV
Using Intro JS (Integration to Code Project FAQ)
26 Feb 2015
Shridhar Gowda
This tip will explain how to sort a table / GridView on an ASP.NET or MVC(AngularJs) application. I am demonstrating both client side and server side sorting. I am sure you will have a great knowledge on this topic after reading it.
26 Mar 2015
Sergey Alexandrovich Kryukov
Popular question on Forms collaboration, also answered for WPF
7 Apr 2015
perspolis
Calculating permutation in a non-recursive way
27 May 2015
Hussain Patel
In this series of articles, we would be discussing about - Reflection in .NET
29 Jun 2016
The Zakies
we would create Hand_tool to pan through the drawing form, and we would use a custom cursor of open and closed hands
18 Nov 2016
winsonet
Create and download the file with Ajax call in ASP.NET MVC
20 Jan 2017
Pete O'Hanlon
Using the implicit operator and fluent APIs to simplify building tests
5 Mar 2017
Jose A Pascoa
Part 1 - Using DMath from C#
21 Mar 2017
dsuryd
Simple, lightweight, yet powerful way to build real-time React + C# .NET web apps with dotNetify-React.
16 Aug 2017
Clifford Nelson
This is a simple behavior that can be attached to a ContentControl and allows zooming and dragging the Content.
21 Aug 2017
Mehdi Gholam
Cleanup the VS 2017 offline installation folder of old versions
4 Apr 2018
Clifford Nelson
This behavior will require that for any Group of ToggleButton/Checkbox controls that are associated together, the user cannot set all to not IsChecked.
29 Apr 2011
DaveAuld
A safe way to get the user to check if the .NET Framework is installed
10 Oct 2012
Lama Barri
A library for packing / unpacking 7bit user data for SMS according to the GSM 03.38 standards.
31 Mar 2013
Melih Mucuk
Creating a WCF Service with JSON data for use on iOS
7 Aug 2013
d.moncada
Change the accessed, modified, and created date attributes of a file
22 Jul 2013
Paw Jershauge
Want your own movie database??? Download IMDB in 20 minutes.
21 Dec 2017
shunninghuang
Decrypt CPS1 audio
24 Dec 2013
Reiss
This is an alternative for "How to Check Whether Word is Installed in the System or Not"
12 Mar 2014
Yogesh Kumar Tyagi
Using this tip, we easily create Thumbnail of “txt, doc, docx, xls, xlsx, ppt, pptx, rtf” files in ASP.NET MVC
14 Apr 2014
CatchExAs
Emulate Human Mouse Input with Bezier Curves and Gaussian Distributions
3 Sep 2014
debashishPaul
How to convert LINQ query to DataTable
30 Nov 2015
Mohammad Dayyan, VahidJafari
A library for creating .Net Serializable Expressions to send via WCF services
15 Jan 2015
Super Lloyd
All the tools to calculate Distance to Bezier curve, find the root of Polynomial, do Complex math
19 Jun 2015
Tareq_Gamal
Workaround to run and exchange data between .NET and other platforms
3 Sep 2015
Alexander Siniouguine
Article on how to reduce size of a bloated Github repository.
12 Feb 2016
Kenneth Haugland
Subscribe weakly to an event using Reactive Extensions
28 Jun 2016
Tomaž Štih
...without interop!
28 Nov 2016
Clifford Nelson
The WPF WebBrower control leaves a lot to be desired.
7 Sep 2018
0x01AA
Native W32 application Interop .NET com visible assembly
3 Feb 2019
Thinira
Continuous Integration and Delivery with VSTS (Visual Studio Team Services)
9 Feb 2011
#realJSOP
StringBuilder mystring = new StringBuilder("AbCd");for (int i = 0; i
9 Jan 2012
Grasshopper.iics
Can't we have something as below?int n=(s.Split(new char[]{'\n'})).Length;where n is the number of lines?
14 Jun 2012
OriginalGriff
Having the property "Text" be available for almost everything in .NET that interacts with the user makes life very simple. But when you create a new UserControl, the Text property doesn't appear in the Properties pane.
29 Jul 2013
Ordiales
When no XP support is necessary. Better Icon structure arrises and easy conversion is allowed.
17 Aug 2013
Prince Tegaton
Building a Custom User Control for Messagebox
19 Sep 2013
Amey K Bhatkar
UpdatePanel tutorial.
3 Dec 2013
Darek Danielewski
Clear guide on how to embed an image inside an HTML email
1 Mar 2014
Amogh Natu
This tip provides one solution to the exception "Configuration system failed to initialize" in C#
23 Sep 2014
Cryptonite
The Blum Micali algorithm provides for a cryptographically secure PRNG (pseudo random number generator).
12 Oct 2014
Nosey Parker
How to calculate subnet fast and get active ip-addresses
25 Dec 2014
Prince Tegaton
This entails how to easily add mobile website feature to your ASP.NET website/app
11 Dec 2015
Akash Gutha
Exploring ways to create abstract images in C#
15 Jul 2017
dsuryd
Application of "MVVM over SignalR" library described in a previous CodeProject tip, combined with Dynamic LINQ library to do incremental web search by typing the query
27 Apr 2016
Clifford Nelson
This article presents a way to display a message in a single control with several sources in a priority order
19 Jul 2016
Christian Koberg
Console output, general applicable to all executables on a Windows system
25 Oct 2016
Cees Verburg
Writing /reading Unicode Characters and INI files in ASCII format
5 Jan 2017
Clifford Nelson
This is a simple popup that includes drag capability. The code should be helpful to anyone looking to create a control drag capability.
7 May 2017
Jung Hyun, Nam
Introducing NConcern, a free open source compile-time AOP framework
10 Jun 2017
Code Cleaner
Running tasks in parallel while taking into account the dependencies between them
2 Aug 2017
Clifford Nelson
Fairly straight forward way of binding in a HierarchicalDataTemplate or DataTemplate to the parent ViewModel when using the TreeView control.
25 Jun 2018
Clifford Nelson
A way to create a custom derived control with the XAML file attached like a UserControl
21 Jul 2018
BenHall_io
Micro-Benchmarking Your C# - Pitfalls and A Tool To Help You Mitigate Them
19 Nov 2018
CPallini
How to generate a spiral numerical pattern without using arrays
3 Mar 2019
Clifford Nelson
This tip presents a behavior that will allow buttons to control the items in a WPF Selector (or ListBox) control.
8 Feb 2013
Andreas Andersen
NUnit doesn't support running the tests in a fixture in parallel. A trick for getting around this limitation is given.
8 Apr 2011
Henry Minute
Or, there's always Scott Guthrie's LINQ To SQL Debug Visualizer[^].[Edit]While I'm posting links there is a nice utility that can output the generated SQL to the Debug Window in VS written by Kris Vandermotten.You can get it here[^].To use it: MyDataContext db = new...
10 May 2011
Eddy Vluggen
A few fields to store general information on the provided code
22 Jul 2011
Muthu Nadar
You can set the default button on your form tag as below code.ORyou can set the default button on a panel as below.And you can place your...
20 Mar 2012
dhenry_il
How to select a USB serial device via its VID/PID.
13 Nov 2012
maximaximum
The article describes how to draw a grid of vertical and horizontal lines in WPF.
9 Jul 2012
Christian Amado
In this tutorial, we will discuss on ProgressBar & Background worker. Follow the step-by-step tutorial to know how to use these clases.
29 Oct 2013
Mike-MadBadger
How to discover all the controls on a form at design time for a property editor
28 Oct 2012
Thomas Daniels
A tip about how to create a local server in C#.
4 May 2013
Bikash Prakash Dash
This tip is helpful to create and manage self-signed SSL certificate for local IIS.
16 Aug 2013
Moudud Hassan
Fix to COM component retrieving error:80040154 in web application running in IIS
31 Oct 2013
Debopam Pal
How to bring data from Entity model to Excel file using LINQ.
3 Dec 2013
Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
After the tip on Excel and Word, here we will explore the trick to verify whether Powerpoint is installed in the client's system or not by C#.
24 Dec 2013
Sitang Ruan
How to display a spinner with disabled background when doing postback or Ajax call
20 Feb 2014
PallavSingh
Converting data column (contains OLE db image binary Format) to image file (.jpg)
25 Mar 2014
Karthik Chintala
The tip just gives a brief on what iterators are in C#
28 Sep 2014
Vahid_N
It's easy to forget not disposing object contexts, which leads to memory leaks and also leaves too many related connection objects not disposed as well.
1 Oct 2014
Yuriy Magurdumov
PropertyMapper allows mapping object properties to string keys and accessing property values based on those string keys
11 Jan 2015
dietmar schoder
Poisson disc algorithm: fundamental C# classes and methods for the artwork production in the area of generative art.
19 Mar 2015
Hrvoje Batrnek
Easy and seamless caching implementation of any virtual method in any class
21 Mar 2015
Amit Singh Baghel
A useful tip to export a Div to PDF (with Unicode support) with the help of NReco-PDF Generator for .NET (C#), JQuery and Handler in ASP.NET
21 Apr 2015
Yaseer Mumtaz
This small tip will explain how you can check status of long running processes in ASP.NET MVC web application using SignalR by sending messages from server to client during execution.
28 Apr 2015
Hassan Alrehamy
JSON Deserialization in depth concept and Dictionary mapping. Special Thanks to Dr. Coral Walker
4 Sep 2015
Igor Sorokin
In this article I would like to describe simple WPF application for showing System.Windows.SystemColors list.
9 Aug 2015
Clifford Nelson
This tip provides an alternate way to combine data with text in a WPF control using a ValueConverter that could be considered easier.
1 Nov 2015
Richard Silveira
EntityFramework.MoqHelper library to work with Entity Framework 6 and Moq libraries doing mocks of Entity Framework main methods that access database.
21 Dec 2015
raddevus
This little desktop app gives you an easy way to track processes which start and stop even when your computer is locked. Also, easily save data and view in Excel.
28 Dec 2015
Dhruti90
MVC functionalities with web service with simple integration
16 Jan 2016
veen_rp
Big lists (>1,000,000 items) can cause out-of-memory errors raised by .NET. Manage them by a List of List(Of T)
1 Mar 2016
Sergey Alexandrovich Kryukov
In response to an interesting Quick Questions & Answers Inquirer's request, I'm showing how to create an impression of window rotation in a simple way
30 Jun 2016
Praveen_Kumar Gupta
with the help of this article developer can add gridlines on canvas , and with slider control resize them easily
21 Aug 2017
Mohsen Esmailpour
Organizing Fluent configurations into separate classes in EF Core 1.0
5 Jan 2017
TaterJuice
Parse quser.exe Results in Regex in any .NET language
19 Jan 2017
Neha Ambasta
This tip describes how to convert the data table/grid into Excel sheet.
4 Jun 2017
Puresharper
How to generate basic swagger yaml description for WCF automatically on build time with Swagger4WCF .NET 4.0+
5 Jun 2017
Puresharper
In many cases, it is important to know if performance of third party library or own code is efficient or not.
26 Apr 2018
Mason Kuck
I walk you through how to make use Table-valued parameters with one value
21 Jun 2017
M.M.Mohseni
In this sample code, we are going to upload a file via a web method asynchronously.
17 Oct 2017
Clifford Nelson
A Behavior is presented that will ensure that only one CheckBox (ToggleButton) will be checked with the same GroupName within the visual tree of the control to which this behavior is attached.
2 Nov 2017
Silvia Campo
How to configure Swagger for web services using token authentication
18 Apr 2018
Clifford Nelson
I had a situation where a control appearing was significantly affected by the initialization of the UserControls. This behavior fixed my problem.
23 Apr 2018
OriginalGriff
How to colour the individual cells of a DataGridView according to their content. For example, negative values can be Red, positive values Green to show "Up"s and "Down"s more easily.
26 May 2018
Vladan.Obradovic
How to easily write a user's guide for your application using different file extensions
27 Dec 2018
Alessio Aronica
Generate forms from MVC models in one simple line of code
13 Feb 2019
Shaenn
C# Worldwide holiday calculation !
7 Oct 2018
BenHall_io
An under-utilised setting that can offer substantial performance gains
6 Aug 2014
DannyVarod
Fast, stable and powerful creation of NuGet packages
2 Jul 2019
Lance Roberts
A tray utility for monitoring log files and popping up error messages
20 Jun 2017
Phil J Pearson
A C# class to implement a Pan and Tilt controller using ONVIF
5 May 2010
Peace ON
Introduction...
23 Jul 2010
Pandey Vinay
This is a direction to use Google Maps API Rest Services instead of using it from JavaScript.
5 Aug 2010
Vinayaka Krishna Shenoy
Setting the best value for Application pool Queue length limit
5 Jan 2011
Espen Harlinn
Make sure your objects are garbage collected
20 Nov 2011
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...
27 Jun 2012
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) { ...
16 May 2012
Chamila Nishantha
Following article describes how to add a gridview and a horizontal scrollbar without depending on the screen resolution
5 Jul 2012
Matthias Böhnke
Bug Fixes for Reading Barcodes from an Image - III
16 Jul 2012
StianSandberg
Make sure your website with and without www redirects to the same page.
24 Aug 2012
Leri Buiglishvili
How to store generic classes in settings
13 Sep 2012
mparvez
An open-source free Flash charting component that can be used to render data-driven animated charts.
18 Dec 2012
Ahmad Dekmak
In this project we learn how to resign a signed assembly with another one of your choice
1 Feb 2013
S. M. Ahasan Habib
.NET TransactionScope and its default Transaction Isolation level issue.
6 Mar 2013
wmjordan
Rendering text with OpenType fonts by P/Invoking GDI API in WinForm applications.
10 Apr 2013
Jason Curl
Using System.IO.Stream default implementation of BeginRead() and BeginWrite() may result in unexpected deadlocks.
5 Jun 2013
Philipp_Engelmann
A small tool I made to easily change the background image of the login screen.
4 Jul 2013
sumit_kapadia
Create and Bind gridview at client side with Jquery Template and ajax in asp.net