Click here to Skip to main content
15,890,185 members
Everything / .NET

.NET

.NET

Great Reads

by Alex Pumpet
A simple program for comparing table data from two sources - SQL databases, Excel, CSV or XML-files
by Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
by Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.
by shunninghuang
CPS1 emulator, ROM hacking

Latest Articles

by Xavier Junqué i de Fortuny
Converts MathML coded string to/from plain text string
by Yevgeniy Shunevych
An introduction to Atata C#/.NET web UI test automation full-featured framework based on Selenium WebDriver
by Mishael Ogo
A look at a simple SQL builder for Dapper
by GabrieleTronchin
In this project, I've implemented the Transactional Outbox Pattern using EF Core.

All Articles

Sort by Title

.NET 

16 Aug 2022 by Bohdan Stupak
"Method can be static" Microsoft Code Analysis warning may hide a violation of object-oriented design
24 Jan 2016 by Daniel Brousser
Custom TextBox control for UI input validation
27 Jan 2010 by CT00138
Setting the (Default) Registry value in a Deployment ProjectI have searched the net and tried various solutions. Finally I got it working.Right click on the deployment project and open the registry optionsCreate the registry key to accessOn the right-hand side in the box beneath...
16 Jun 2016 by Tomaž Štih
How to (dynamically) implement ToString() as a Lambda function
27 Jun 2015 by Pedram_Niloufari
C# .Gif viewer / Snipper control
23 Sep 2013 by sumit_kapadia
Simple and free approach to manage your code on cloud with git-SCN and dropbox
22 May 2010 by #realJSOP
Don't reinvent the wheel - use the one that's already on the cart.
6 Apr 2010 by TheGreatAndPowerfulOz
The following is far easier to understand and use than the Outlaw's tip (IMHO).text = Regex.Replace(text, "screen_fadetimeout=\"[^\"\']+\"", "screen_fatetimeout="99");It has the following advantages:1. It is one line of code2. It is easier to read3. It is faster (note: XmlElement...
17 May 2010 by Sarang Date
Any string input can have these many possible states1) String is null2) String is empty3) String contains nothing but white space4) String has some contentTill now, .NET had static method for stringbool string.IsNullOrEmpty()which handled first two conditions for...
12 Aug 2010 by jfriedman
public static class StringExtensions { public static bool IsNullOrWhitespace(this string s) { if (null == s) return true; return string.IsNullOrEmpty(s.Trim()); } }
18 Mar 2014 by Johannes Bildstein
Reading and writing Bitmaps with full 16bit per channel (and possibly more)
19 Mar 2015 by Peter T. Ringering
A program that makes editing code comments and XML comments easier.
20 Jan 2010 by Vinayaka Krishna Shenoy
.NET Coding Best Practices - Vinayak's thumb rulesDo not hard code strings/ numerics. Instead of that use constants as shown below.Bad practice int Count; Count = 100; if( Count == 0 ) { // DO something… }Good practice int Count; Count = 100; private...
9 Nov 2021 by Member 12660776
Programmatically Adding New ConfigurationSectionGroup Corrupts Declaration Section With Multiple Group Declarations.
27 Sep 2023 by Victor Sirghii
On the parent razor page, we add Partial View which will serve as the updatable container. On Ajax calls from the parent page, we update only Partial view content, not the whole page, thus creating a smooth user interaction experience.
13 Jan 2020 by M.M.Mohseni
In this article, we'll explain how to register (Add) all specific interface assignable types in an assembly and will use them in a class.
19 Mar 2020 by RickZeeland
Version all your .NET Core projects in one swoop fell!
6 May 2015 by Etienne Louise (974)
In this article I'll show how to create custom culture and then show an exemple of how to use it in an ASP.Net MVC application.
19 Mar 2014 by Jacob Himes
My go around to an Entity Framework alternative
7 Jul 2015 by Pavel Durov
Tip about converting .NET DateTime to Unix double timestamp and vise versa - on .NET
31 Mar 2011 by Jon_Slaughter
Simple class to encapsulate a double reference
8 Nov 2012 by AthosXtreme
How to build a .NET wrapper to send MaxL commands to Essbase.
8 Jul 2014 by B.O.B.
How to get correct caret position from Textbox control
4 Dec 2014 by Nilesh Morankar
This is a very basic ASP.NET tip about how to manage multiple Config files on one web application by dividing the specific Config settings to multiple Config files.
31 May 2016 by Yaseer Mumtaz
.NET interview questions and answers with real world examples and code snippets
19 Jan 2011 by GPUToaster™
.NET Interop Revisited
25 Dec 2014 by Amir Hamza Md. Kayes
.NET interprocess communication using named pipe
24 Jan 2016 by Dmitry Orzhevsky
This article dives into .NET method inlining topic and shed some light on one particular case when CLR is more likely to inline method - looping.
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
21 Jul 2018 by Ben Hall (failingfast.io)
Micro-Benchmarking Your C# - Pitfalls and A Tool To Help You Mitigate Them
7 Oct 2018 by Ben Hall (failingfast.io)
An under-utilised setting that can offer substantial performance gains
15 Jul 2014 by AlexF185
A dynamic progress bar control easy to use and literally plug and play
21 Apr 2013 by emadns
Second tutorial for loading data through code - Sqlite
11 Oct 2015 by Bismark Appah
3 Jun 2011 by Alexey Merson
If you have a SOAP server created with Borland Delphi and a SOAP client created with .NET, then you can't get it working out of the box.
3 Jan 2015 by Peter Piotti
A clean, simple alternative to using the Entity Framework for stored procedures data access in a .NET/SQL Server environment
1 Feb 2013 by S. M. Ahasan Habib
.NET TransactionScope and its default Transaction Isolation level issue.
14 Mar 2014 by Nikita D. Sinelnikov
HowTo: make the report background (elements) of Microsoft .NET Report (.rdlc) non-printable
23 Oct 2014 by BrokenEvent
.NET WinForms Tray icon implemenation with Win7 and Vista features: GUID identification, large custom icons, custom UI instead of the hint, etc.
23 Oct 2015 by Yaseer Mumtaz
XML input parameter to RESTful API using HttpClient and bypassing the SSL certificate
16 Feb 2018 by Alberto M.
Zlib compress / decompress implementation using .NET 4.5.1, with no external DLLs
24 Oct 2015 by Kailash Shastri
Tips and tricks to speed up your VS.NET builds
29 Nov 2015 by Michael Bogaerts
What brings the 15.2 release for XAF (win) developers
24 Aug 2018 by simonp_ca
How to remove Windows service from Service List (not just stop/disable it, but to delete it from the list totally)
5 Jul 2012 by Sumit Chawla
2-Legged OAuth Authentication in .NET (C#)
2 Nov 2015 by Farhad Reza
We will design two interesting characters in this tip. The first one is Code Project Bob sticker and the second one is Magpie bird which is the national bird of Bangladesh.
19 Jan 2015 by JatinKhimani
Develop a web application in 3 layer architecture code style
21 Sep 2010 by GPUToaster™
A simple way to detect bitness of an OS Programatically. (C# and C++ examples given)
13 Oct 2010 by Reinhard Ostermeier
In .NET 4.0, you can also use the new System.Environment.Is64BitOperatingSystem and System.Environment.Is64BitProcess
19 Sep 2010 by Aescleal
In C++ you can use the size of a pointer to work out what sort of process you're running in:bool is_64_bit(){ return sizeof(void *) == 8;}This has got the advantage of being portable and you don't have to call any OS functions.You can do something similar in C - just return...
20 Sep 2010 by a_pess
To check 64Bit Operating system in VB.NET,Public Shared Function is64BitOPeratinSystem() As Boolean Return (Marshal.SizeOf(IntPtr.Zero) = 8)End Function
5 Aug 2011 by The_Mega_ZZTer
Version check is wrong. It happens to work correctly only because no minor versions of Windows 5 were released after 5.1 (AFAIK... are Windows Server 2003 and Embedded XP and Media Center XP still 5.1?). A theoretical version 5.2 would fail the check. I submit the following...
20 Jan 2015 by charles922
3D programming with OpenGl and C# to create an interactive puzzle
25 Jan 2014 by Calabash Sisters
This article aims at talking about some useful solutions for you to merge to multiple excel worksheets into one.
12 Mar 2012 by Muthu Nadar
This article will explain about null coalescing operator along with its advantage and disadvantage.
16 Jun 2012 by Nadege Rouelle
How to add initialization data when configuring Entity Framework Code First.
12 Apr 2017 by Dave “DWC” Curry
How to wire up drag+drop events through multiple objects.
7 Feb 2014 by Subodh Raghav
In this tip, you will learn how to send an email in your ASP.NET application.
20 Jun 2016 by The Zakies
we will build an outline line around the drawn lines so we would test the mouse click on this outline to know which line is selected. and we would in the coming update build a select function inside the move tool
24 Jun 2016 by The Zakies
in this tut we will create a technique to enable the user to control points within a drawn line, by drawing circles around points of the line , when the user clicks a circle he would control the corresponding point.
29 Jun 2016 by 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
3 Jul 2016 by The Zakies
we will continue the functionality of the hand tool with having a navigator panel which works as a map, we will also have a red rectangle which tells the user where he is actually viewing inside the whole form, also it can be moved to pan the form
13 Mar 2016 by The Zakies
Tutorial 1 (how to create a vector graphics program)
7 Jun 2016 by The Zakies
[tut4] how to draw lines & to draw different types on end shapes like rectangle and circle using C#
20 Jun 2016 by The Zakies
Learn how to implement a tecnique of a parent form that createes and controls other forms , through the tecnique of using the tab control, also learn how to implement a menu for the tools, and how to add cutom cursor for each tool
21 Apr 2016 by Subodh Raghav
A web service is a web application (a piece of software component) which is available on the internet.
25 Feb 2015 by saad_lah
Complete guide for beginner to setup EmguCV project and run first program in Visual Studio
20 Feb 2014 by toneware
A utility that monitors a selected directory for changes
5 Nov 2014 by Jeong, WonYoung(Brad)
Making BitField with C# alternative to BitField made with union and struct of C++
16 Feb 2022 by charles henington
Simple user defined Cipher Transform that I got the idea from https://www.codeproject.com/Articles/5319044/ARC4-Encryption-Library
22 Dec 2015 by MarcusCole6833
A basic tutorial on how to Use WCF service with the Entity Framework
16 Jul 2015 by Math08avan
A simple example for CRUD actions using WCF service in ASP.NET
22 Apr 2016 by Darryl Bryk
C# code for a low-pass Butterworth filter is presented
9 Mar 2017 by TheGreatAndPowerfulOz
How to recursively select all descendants using an extension method
18 Jun 2013 by Michiel du Toit
Code for a C# string.Like extension method.
15 Apr 2015 by sx2008
An easy-to-use class to prevent multiple instances of your application from opening and focusing/activating the first instance window.
30 Dec 2022 by Graham Wilson
A collection of simple .NET Framework/.NET WinForm controls and utilities.
19 Nov 2013 by YOSSI ROZENBERG
A computational statistics class in C#
6 Jan 2020 by honey the codewitch
Easily add progress reporting to your console apps
15 Mar 2016 by Clifford Nelson
There is a Parse and TryParse for fields, but they cannot be used for properties. Here is a concept to create TryParse that will work for properties.
24 Jan 2023 by RickZeeland
A Custom Flat-style Numeric UpDown Control with a simple demo application written in .NET 6
8 Sep 2008 by cesar_boucas
A custom derivative of ServiceHostFactory to control how WCF service hosts are created.
13 Mar 2016 by Gregory Morse
Custom TAUS Data Provider to allow increased multilingual support using Google Translate's web interface
7 Dec 2018 by Dirk Bahle
Making better use of the available UI space.
8 Oct 2011 by Eddy Vluggen
A simple scripted solution to automate your daily builds (cost 5 minutes of scripting)
16 Nov 2020 by Erik Nagel
Usable demo demonstrating some aspects of application architecture
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
23 Oct 2021 by honey the codewitch
A handy code snippet that can set indentation levels while rendering multipart documents with a TextWriter
23 May 2014 by Frank T. Clark
Improving file transfer speed for large files
23 Apr 2021 by honey the codewitch
BinaryReader needs a better way to read strings and types. Here's a quick and dirty fix
28 Feb 2015 by Afzaal Ahmad Zeeshan
This tip is to provide an overview of writing strings in ASP.NET web applications to avoid concatenations.
25 Jun 2012 by Vasily Tserekh
A list of the problems I had to address and how I solved them
3 May 2014 by Bruce Greene
A bare-bones Find and Replace tool for AvalonEdit
6 Apr 2018 by PIEBALDconsult
A Trim method for strings that provides flexibility without requiring the use of large character arrays
8 Jan 2017 by Nuwan Karunarathna
This a foldable content control for UWP platform.