Click here to Skip to main content
14,978,617 members
Everything / Programming Languages / C#

C#

C#

Great Reads

by Graeme_Grant
Working with simple JSON objects and collections to Custom Converters and Transformations into .NET classes
by Alex Pumpet
A simple program for comparing table data from two sources - SQL databases, Excel, CSV or XML-files
by Dr. WPF
.NET 3.5 SP1 is here! It's time to break out your DirectX skills. This article provides the information necessary to get started using a new DirectX interop feature in WPF called D3DImage.
by John Atten
OWIN, Katana and Middleware Pipeline in ASP.NET

Latest Articles

by Adérito Silva
A demonstration about how to read an exact number of bytes from Stream objects.
by Oleksandr Viktor (UkrGuru)
Minimally simple UkrGuru.SqlJson package for your ASP.NET Core Web Application
by Duncan Edwards Jones
A library to demonstrate doing Event Sourcing as a data persistence mechanism for Azure Functions
by Marcus Müller
Pandemic SEIR and SEIRV modelling software and infrastructure for the Corona SARS-COV-2 COVID-19 disease with data from Johns-Hopkins-University CSSE, Robert Koch-Institute and vaccination data from Our World In Data.

All Articles

Sort by Score

C# 

Please Sign up or sign in to vote.
2 Sep 2013
Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
Please Sign up or sign in to vote.
16 Jun 2011
Wonde Tadesse
The other option will be to use Update Panel ASP.NET control as much as possible. It helps to retain the current position on the page whenever a postback happens to the page.
Please Sign up or sign in to vote.
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!
Please Sign up or sign in to vote.
8 Aug 2013
Ravi Rachchh
Create and deploy custom timer job definition programatically in SharePoint.
Please Sign up or sign in to vote.
23 May 2012
Shweta Lodha
Reducing flicker and blinking in DataGridView.
Please Sign up or sign in to vote.
23 Aug 2012
Vitaly Tomilov
Simplest and quickest way to automatically bind array of image bytes to asp:Image object.
Please Sign up or sign in to vote.
21 Jul 2014
Cristian Moldovan
1 alternative  
jQuery unobtrusive validation plugin with Twitter Bootstrap 3 showing error messages as tooltips
Please Sign up or sign in to vote.
3 Nov 2013
Hovhannes Bantikyan
This is a simple infinite scroll with Ajax post and JSON. Have fun :)
Please Sign up or sign in to vote.
28 Jul 2014
lusgon
Uploading a file using WCF REST API and JavaScript
Please Sign up or sign in to vote.
17 Jun 2014
OriginalGriff
The Article editor does work - but sometimes it does do things the hard way, and tries to frustrate you on purpose, I'm sure...
Please Sign up or sign in to vote.
8 Apr 2015
Michael Sydney Balloni
How to improve on .NET memory management for large objects
Please Sign up or sign in to vote.
8 May 2019
Bruno Tabbia
Automatic positioning and resizing of explorer windows, without overlapping (for obsessive superusers)
Please Sign up or sign in to vote.
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.
Please Sign up or sign in to vote.
5 Jul 2017
LoveJenny
EasyLicense is an open-source license tool for .NET applications.
Please Sign up or sign in to vote.
23 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,...
Please Sign up or sign in to vote.
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.
Please Sign up or sign in to vote.
27 Dec 2017
Alberto M.
How to control TP-Link Smart Plug (HS100 or HS110) with C#
Please Sign up or sign in to vote.
8 Apr 2020
Gunnar S
Implementation of the Poisson Cumulative Distribution function for large Lambdas
Please Sign up or sign in to vote.
10 Jul 2018
Viktor Kovács
Parallel foreach loop implementation for nested loops
Please Sign up or sign in to vote.
3 Apr 2013
OriginalGriff
Questions here quite often ask "how do I send data from one form to another?" and I must have answered this a dozen times. So, a series of three tips to cover the process.
Please Sign up or sign in to vote.
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.
Please Sign up or sign in to vote.
4 Jul 2014
Chakravarthi Elchuri
How to use WIA supported scanner using C#
Please Sign up or sign in to vote.
31 Dec 2019
Marc Clifton
Please don't do this!
Please Sign up or sign in to vote.
29 May 2010
becker666
Sample working C# code to carry the IPN
Please Sign up or sign in to vote.
1 May 2012
AspDotNetDev
4 alternatives  
Call a series of functions until the return value meets a condition without a chained-if or short-circuiting.
Please Sign up or sign in to vote.
28 Nov 2011
Akos Orban
Set Owner of a WPF Window to a Form
Please Sign up or sign in to vote.
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.
Please Sign up or sign in to vote.
15 Feb 2013
Dread_Sharp
How to build an easy plugin system with C# which only takes about 30 lines of code!
Please Sign up or sign in to vote.
27 Jun 2014
Sergiy Korzh
How to make search by StartsWith criteria in Azure Tables
Please Sign up or sign in to vote.
4 Apr 2015
Jean Carlo S. Passos
CRUD over Association Entity that maps to association tables
Please Sign up or sign in to vote.
7 Mar 2010
Luc Pattyn
This is an alternative to "Week Numbers According to ISO8601".
Please Sign up or sign in to vote.
26 Feb 2013
Jeffrey T. Fritz
A throw-back to a .NET 1.1 feature to use instead of writing an extension method.
Please Sign up or sign in to vote.
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
Please Sign up or sign in to vote.
2 Jul 2015
Bharat Mallapur
Sample project to host MS-Chart in your WPF application
Please Sign up or sign in to vote.
11 Jun 2021
Mashudu Nemukula
Generate C# object class from common SQL databases types
Please Sign up or sign in to vote.
19 Nov 2009
Aviad P.
Can the C# ‘var’ keyword be misused?
Please Sign up or sign in to vote.
9 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 =...
Please Sign up or sign in to vote.
21 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
Please Sign up or sign in to vote.
12 Mar 2013
Mark McLean (ExpElec)
ST provide a DFU module for their STM32 micro-controllers for firmware upgrade over USB. This is an example of how to use it from C#.
Please Sign up or sign in to vote.
18 Jul 2014
Matthew Givens
How to change databases at run-time in a user-friendly manner.
Please Sign up or sign in to vote.
21 Oct 2015
OriginalGriff
A simple "scratch card" like control for Winforms, where the user can reveal the image by "scratching off" a cover
Please Sign up or sign in to vote.
19 Feb 2019
Steffen Ploetz
How to compile and run the first C# application in ReactOS
Please Sign up or sign in to vote.
9 Feb 2018
Meshack Musundi
How to highlight TextBlock text using attached properties
Please Sign up or sign in to vote.
24 Jan 2010
Md. Marufuzzaman
Using of .NET TransactionScope
Please Sign up or sign in to vote.
13 Jun 2011
Ctznkane
The Array class already contains this capability with no casting required. The IndexOf method is a static one that returns the index of the value and a -1 if it doesn't exist.Here is an example:exists = Array.IndexOf(arr, "item") >= 0
Please Sign up or sign in to vote.
22 Jul 2013
Igor Ladnik
An interesting code illustrating the influence of Just-In-Time (JIT) compilation in .NET on code formation.
Please Sign up or sign in to vote.
30 Oct 2014
Dan Hu
Demonstrate how to use .NET Cryptography library to create a file encryption/decryption tool
Please Sign up or sign in to vote.
14 Dec 2014
MarkLTX
Automatically implement INotifyPropertyChanged for every property in Entity Framework 6.0 entity classes
Please Sign up or sign in to vote.
22 Jan 2015
Maximiliano Rios
How to use the new Identity framework with external authentication services such as Google, Facebook, Twitter and so forth, retrieving information from users profiles. Including NInject integration.
Please Sign up or sign in to vote.
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.
Please Sign up or sign in to vote.
10 Jun 2016
TheForceIsSharp
ASP.NET Core Web API, Multiple Get or Post methods with single controller
Please Sign up or sign in to vote.
15 Oct 2020
RickZeeland
PostgreSQL notifications Windows Forms application
Please Sign up or sign in to vote.
29 Nov 2017
Danny Chu
Learn how to detect if client has JavaScript enabled or disabled at your backend webserver
Please Sign up or sign in to vote.
23 Dec 2019
honey the codewitch
Easily implement efficient backtracking capabilities over any enumeration
Please Sign up or sign in to vote.
13 Mar 2020
honey the codewitch
How to provide custom formatters for string.Format() in C#
Please Sign up or sign in to vote.
28 May 2010
DecodedSolutions.co.uk
This is a simple article describing how to create an add an outlook appointment to your MS Outlook Calender.
Please Sign up or sign in to vote.
9 Jul 2011
Paulo Zemek
The easiest singleton pattern is the one you used to the lock object itself.Creating any variable as static readonly and initializing it directly (or via a static constructor) will already make it singleton.Also, considering that "lock" clears all the caches, you don't need to declare the...
Please Sign up or sign in to vote.
19 Dec 2011
Robert S Sharp
I'm not sure that GC would matter very much in such a simple app.But, it's either a call to Dispose on your SmtpClient after you're done using it:smtp.Dispose();or use a using:using (SmtpClient smtp = new SmtpClient{ Host = "smtp.gmail.com", Port = 587, Credentials = new...
Please Sign up or sign in to vote.
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.
Please Sign up or sign in to vote.
19 Aug 2013
luivis7
A simple example of how to use jQuery Autocomplete to make an AJAX call to WebAPI in an MVC4 application.
Please Sign up or sign in to vote.
9 Dec 2013
dietmar paul schoder
How to get the location of a specific IP-address
Please Sign up or sign in to vote.
6 Jun 2014
Amir Mohammad Nasrollahi
How to list the installed applications of your system and their setup details in C# language
Please Sign up or sign in to vote.
30 Sep 2014
WaqaarRasool
Heartbeat Implementation in WCF Service in C#
Please Sign up or sign in to vote.
24 Apr 2015
arora.abhishek
In this tip, we will learn about the new feature of C# 6.0, the Null Propagation Operator.
Please Sign up or sign in to vote.
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.
Please Sign up or sign in to vote.
2 Sep 2015
Peter Leow
Get your database to generate unique running IDs for your application
Please Sign up or sign in to vote.
11 Feb 2016
Martin Gmuca
A brief introduction to Windows 10 IoT development
Please Sign up or sign in to vote.
11 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
Please Sign up or sign in to vote.
15 Oct 2018
moneema14
A parser event listener for PDF tables to .NET Dataset object
Please Sign up or sign in to vote.
23 Apr 2021
honey the codewitch
BinaryReader needs a better way to read strings and types. Here's a quick and dirty fix
Please Sign up or sign in to vote.
16 Nov 2010
alrosan
How to change input language
Please Sign up or sign in to vote.
30 Oct 2011
jim lahey
In response to Adrian Cole's comment to the OP - due to living and working in a country where there are four official languages, plus English as a de facto fifth, I've encountered this before.Provided you have the corresponding .resx files embedded in the same assembly as the enum and your...
Please Sign up or sign in to vote.
17 Aug 2012
Arman Aşçı
Parallel port data register control with C# .NET 2.0 and inpout32.dll.
Please Sign up or sign in to vote.
4 Aug 2013
Faisal(mfrony)
Understand the use of covariance in .NET 4.0
Please Sign up or sign in to vote.
12 Aug 2013
Le Sourcier
This tip helps in using font icons as ImageSource.
Please Sign up or sign in to vote.
10 Feb 2014
harleydk
Image Orientation of Images Uploaded via ASP.NET fileupload Control
Please Sign up or sign in to vote.
11 Jan 2015
Muhammad Hassan Tariq
Glimpse Extension for server side debugging and diagnostic information of ASP.NET applications
Please Sign up or sign in to vote.
11 Mar 2015
Ivan Yakimov
In this article I'll explain how to make something similar to load balancer on your single developer machine.
Please Sign up or sign in to vote.
8 Apr 2015
Dariush Tasdighi
Multi Select Drop Down List Directive with Latest Bootstrap and AngularJS
Please Sign up or sign in to vote.
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
Please Sign up or sign in to vote.
20 Oct 2015
Manish Dubeyy
How to debug the design time errors in WPF XAML file?
Please Sign up or sign in to vote.
26 Nov 2016
JamesFaix
Get a collection of all running Excel interop Application objects (not just the active one)
Please Sign up or sign in to vote.
22 Apr 2016
Darryl Bryk
1 alternative  
C# code for a low-pass Butterworth filter is presented
Please Sign up or sign in to vote.
15 Mar 2017
Ricardo_Torres_Torres
Read text file and insert mutiples records in just one SQL Sentence
Please Sign up or sign in to vote.
6 Aug 2016
Clifford Nelson
This tip presents a way to have disabled items in your ComboBox
Please Sign up or sign in to vote.
11 Oct 2017
Clifford Nelson
This tip presents a way to display checkboxes for selection of ListBox Items instead of the default highlighting
Please Sign up or sign in to vote.
4 Oct 2019
SeaWater
How to add translation features to your program. This is not for bulk or commercial usage but for lite usage. For business purposes, use the paid service.
Please Sign up or sign in to vote.
19 Mar 2020
honey the codewitch
Learn how to use a powerful programming technique for multitasking in your projects
Please Sign up or sign in to vote.
1 Oct 2015
Clifford Nelson
Presents a behavior to prevent entry of anything but digits into a control
Please Sign up or sign in to vote.
5 Aug 2010
JohnCAldrich
Calculate a *Proper* Star Trek style Stardate
Please Sign up or sign in to vote.
8 Feb 2011
OriginalGriff
When I add a log reader, the size of the log can be huge, and get very slow to view. This makes the GridView do all the work of paging the data for you.
Please Sign up or sign in to vote.
20 Jun 2011
Kiran Sonawane
1 alternative  
A trick when using Array.Contains()
Please Sign up or sign in to vote.
4 Feb 2012
Huisheng Chen
Using reflection to dynamically verify if an assembly is in debug or release compilation
Please Sign up or sign in to vote.
27 Nov 2013
user6790
Autocomplete feature of jQuery in a MVC 3 application.
Please Sign up or sign in to vote.
16 Jan 2014
Tom Glick Philadelphia, US
POC to demonstrate passing of collections of complex objects to ASP.NET Web API Controllers.
Please Sign up or sign in to vote.
29 Jan 2014
Sivaji1565
View unsafe pointer as an array in C# watch window
Please Sign up or sign in to vote.
9 Apr 2015
Royston Malcomber
Setting up Google reCaptcha version 2 with MVC5
Please Sign up or sign in to vote.
12 Apr 2015
Jeffijoe
Writing properly formatted, grammatically correct, translatable UI messages
Please Sign up or sign in to vote.
5 Feb 2017
cjmakwana
This article outlines the C# code implementation for the popular message broker pattern generally used in common problems which involves brokering of messages with arbitrary type.
Please Sign up or sign in to vote.
1 Apr 2017
Marco Bertschi
This tip presents an easy way of verbosely converting an exception and its inner exceptions to a string in order to get access to all details.
Please Sign up or sign in to vote.
26 Sep 2017
Clifford Nelson
1 alternative  
A behavior that allows the developer to bind an IList to SelectedItems of a ListBox or MultiSelector.
Please Sign up or sign in to vote.
22 Feb 2019
Bohdan Stupak
"Method can be static" ReSharper warning may hide violation of object-oriented design
Please Sign up or sign in to vote.
26 Mar 2015
Sergey Alexandrovich Kryukov
Popular question on Forms collaboration, also answered for WPF
Please Sign up or sign in to vote.
11 Jan 2016
hesido
A super simple method for listing Enum members in WPF using databinding
Please Sign up or sign in to vote.
17 Nov 2016
winsonet
Create and download the file with Ajax call in ASP.NET MVC
Please Sign up or sign in to vote.
23 Mar 2010
AspDotNetDev
This version works regardless of parameters:public void AnyMethod(int parameter){ MethodInvoker wrapper = new MethodInvoker(delegate() { // Do your thing here! }); if (this.InvokeRequired) this.Invoke(wrapper); else wrapper();}Note also...
Please Sign up or sign in to vote.
5 Jul 2010
Md. Marufuzzaman
For programmers it is more important that you identify whether you are allowed to do something.
Please Sign up or sign in to vote.
14 Aug 2010
Roger Wright
A simple example of creating a new database on a SQl Server instance
Please Sign up or sign in to vote.
14 Jun 2011
PSK_
1 alternative  
How to maintain scroll position of a long page with vertical scrollbar in browser other than IE.
Please Sign up or sign in to vote.
15 Sep 2011
Reiss
1 alternative  
A guide on how to call overload constructors in C#
Please Sign up or sign in to vote.
8 Jun 2012
Clifford Nelson
You can implement BackgroundWorker using Lambdas without any sort of helper class very easily.
Please Sign up or sign in to vote.
26 Aug 2012
Wendelius
1 alternative  
The tip shows one way to resolve if a user control is in design mode.
Please Sign up or sign in to vote.
7 May 2013
Ehsan yazdani rad
XAF is a good framework that facilitates software making, but as it provides many benefits, there is the limitation that you have to deal with, one of them is placing fully customized form in a view
Please Sign up or sign in to vote.
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 :)
Please Sign up or sign in to vote.
20 Feb 2013
Lars Pehrsson
Highligting and marking indvidual dates in a WPF Calendar
Please Sign up or sign in to vote.
5 Jul 2013
Johnny J.
A sample owner-drawn ComboBox
Please Sign up or sign in to vote.
7 Jul 2013
Behrooz Bahrameh
This tip describes how to read Excel files and make an array of objects from Excel.
Please Sign up or sign in to vote.
23 Aug 2013
BlackMirrh
Sequence Alignment using Needleman Wunsch algorithm in C#
Please Sign up or sign in to vote.
18 Jun 2020
shunninghuang
Software named M1.NET which shows the details of decrypting arcade game audio
Please Sign up or sign in to vote.
21 Mar 2014
sagar_253
Listview column sort and set sort column icon (ascending/desceding)
Please Sign up or sign in to vote.
22 Oct 2014
Kalvin Lawrence Ernst
Generate a web app instantly, directly from a database(SQL Server)
Please Sign up or sign in to vote.
19 Feb 2021
Mykola Tarasyuk
An approach to call built-in Visual Studio commands from within Visual Studio extensions
Please Sign up or sign in to vote.
9 Jan 2015
Kristian Lindberg Vinther
An implementation of a line segment intersection algorithm
Please Sign up or sign in to vote.
15 Jan 2015
Super Lloyd
All the tools to calculate Distance to Bezier curve, find the root of Polynomial, do Complex math
Please Sign up or sign in to vote.
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.
Please Sign up or sign in to vote.
2 Apr 2015
Dr Gadgit
Written in C# and VS2010 as a class libary to be used in your own project.
Please Sign up or sign in to vote.
7 Apr 2015
perspolis
Calculating permutation in a non-recursive way
Please Sign up or sign in to vote.
27 May 2015
Hussain Patel
In this series of articles, we would be discussing about - Reflection in .NET
Please Sign up or sign in to vote.
19 Jan 2018
ergohack
This roguish way of moving a WorkItem, directly 'in-place', through SQL leaves all of the previous data associations intact, but portends issues with future major updates and current TFS Data Warehousing.
Please Sign up or sign in to vote.
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
Please Sign up or sign in to vote.
7 Jul 2016
slccocdev
How to Use SSH.NET in Visual Studio 2015 to upload a file to an SFTP site
Please Sign up or sign in to vote.
20 Jan 2017
Pete O'Hanlon
Using the implicit operator and fluent APIs to simplify building tests
Please Sign up or sign in to vote.
5 Mar 2017
Jose A Pascoa
Part 1 - Using DMath from C#
Please Sign up or sign in to vote.
21 Mar 2017
dsuryd
Simple, lightweight, yet powerful way to build real-time React + C# .NET web apps with dotNetify-React.
Please Sign up or sign in to vote.
16 Aug 2017
Clifford Nelson
This is a simple behavior that can be attached to a ContentControl and allows zooming and dragging the Content.
Please Sign up or sign in to vote.
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.
Please Sign up or sign in to vote.
22 Oct 2019
YasIkeda
ASP.NET Core 3.0 uses a built-in JSON converter from System.Text.Json so that JsonConverter attribute from Newtonsoft.Json does not work by default.
Please Sign up or sign in to vote.
6 Feb 2020
honey the codewitch
A circular buffer implementing IList
Please Sign up or sign in to vote.
2 Mar 2021
Tomaž Štih
Sometimes you need to draw a simple glyph.
Please Sign up or sign in to vote.
15 Apr 2021
Thoits
A design pattern for C# that reuses a generic base class, modifying it using a traits class to allow changes that cannot be accomplished through overrides in an inherited class.
Please Sign up or sign in to vote.
19 Dec 2010
qlipoth
6 alternatives  
Drop-in Function to get the steps to convert one list to another
Please Sign up or sign in to vote.
19 Feb 2011
#realJSOP
2 alternatives  
Determine the number of unique colors in an image
Please Sign up or sign in to vote.
13 Jun 2011
Luc Pattyn
This is an alternative to "L33t Tr4nsl4t0r (Leet Translator)".
Please Sign up or sign in to vote.
18 Oct 2011
Andrew Rissing
Or you could just go the other direction and cache the known results ahead of time. You're only looking at 13 numbers in all, so it is not a big memory hog to just store those known values inside of the method and be done with it.static uint Factorial(uint x){ if (x > 12) throw...
Please Sign up or sign in to vote.
27 Dec 2011
Nigam Patel
Here is a really simple code for a numeric text box and it will work in all browsers. Only works for web applications. function CheckNumeric(e) { if (window.event) //...
Please Sign up or sign in to vote.
3 Jan 2012
thatraja
Check this jQuery alternativejqlog - A logging framework plugin for jQuery[^]
Please Sign up or sign in to vote.
6 Jun 2012
Clifford Nelson
A little trick that will more completely fill the DatePicker background from the code-behind.
Please Sign up or sign in to vote.
2 Oct 2012
Clifford Nelson
This article presents a way to display totally dynamic data in a windows grid using a dictionary.
Please Sign up or sign in to vote.
10 Oct 2012
Lama Barri
A library for packing / unpacking 7bit user data for SMS according to the GSM 03.38 standards.
Please Sign up or sign in to vote.
6 Aug 2013
d.moncada
Change the accessed, modified, and created date attributes of a file
Please Sign up or sign in to vote.
22 Jul 2013
Paw Jershauge
Want your own movie database??? Download IMDB in 20 minutes.
Please Sign up or sign in to vote.
24 Dec 2013
Reiss
This is an alternative for "How to Check Whether Word is Installed in the System or Not"
Please Sign up or sign in to vote.
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
Please Sign up or sign in to vote.
14 Apr 2014
CatchExAs
Emulate Human Mouse Input with Bezier Curves and Gaussian Distributions
Please Sign up or sign in to vote.
10 Nov 2014
Cryptonite
This is how to use the bisection method to calculate the nth root of a positive real number.
Please Sign up or sign in to vote.
15 Nov 2014
Member 3531622
Create a Rules Engine in less than 50 lines of code which is extremely powerful, extensible and adaptable
Please Sign up or sign in to vote.
30 Nov 2015
Mohammad Dayyan, VahidJafari
A library for creating .Net Serializable Expressions to send via WCF services
Please Sign up or sign in to vote.
10 Jan 2015
dietmar schoder
Poisson disc algorithm: fundamental C# classes and methods for the artwork production in the area of generative art.
Please Sign up or sign in to vote.
24 Jan 2015
shijo joseph
A file backup manager with simple user interface and all the essential functionalities.
Please Sign up or sign in to vote.
19 Jun 2015
Tareq_Gamal
Workaround to run and exchange data between .NET and other platforms
Please Sign up or sign in to vote.
12 Feb 2016
Kenneth Haugland
Subscribe weakly to an event using Reactive Extensions
Please Sign up or sign in to vote.
28 Jun 2016
Tomaž Štih
...without interop!
Please Sign up or sign in to vote.
28 Nov 2016
Clifford Nelson
The WPF WebBrower control leaves a lot to be desired.
Please Sign up or sign in to vote.
6 Jul 2017
Alexander Sharykin
No more Template copies
Please Sign up or sign in to vote.
19 Nov 2018
CPallini
How to generate a spiral numerical pattern without using arrays
Please Sign up or sign in to vote.
27 Apr 2019
OriginalGriff
This is an alternative for "List Only Files Created or Modified Yesterday in C#"
Please Sign up or sign in to vote.
15 Dec 2019
Shao Voon Wong
Easier direct memory access in a safe way
Please Sign up or sign in to vote.
24 Feb 2020
honey the codewitch
A relatively safe, simple, yet high performance technique for using lists as dictionary keys.
Please Sign up or sign in to vote.
16 Mar 2021
Scriptress
C# port of the original Pascal code for Cheat Engines AutoAssembler/Assembler/Disassembler
Please Sign up or sign in to vote.
16 Feb 2010
Pranay Rana
Following is code by which you get time in (HH:SS:MM) formate by passing second as argument public string getFormattedTimeFromSecond(double second) { TimeSpan t = TimeSpan.FromSeconds(second); string formatedTime = string.Format("{0:D2}H:{1:D2}M:{2:D2}S", ...
Please Sign up or sign in to vote.
11 Jun 2010
Luc Pattyn
Showing an image in a WinForm WebBrowser without using files
Please Sign up or sign in to vote.
26 Oct 2010
Matt T Heffron
Since SortedSet has a constructor that takes an IEnumerable parameter, the ToSortedSet extension method can be greatly simplified:public static SortedSet ToSortedSet(this IEnumerable t){ return new SortedSet(t);}
Please Sign up or sign in to vote.
22 Nov 2010
CPallini
3 alternatives  
There was a request about in Q&A. The question was deleted, anyway I think the subject may be interesting.
Please Sign up or sign in to vote.
30 Nov 2010
nortee
A note about StringBuilder Extensions
Please Sign up or sign in to vote.
1 Dec 2010
Andrew Rissing
I'd recommend a minor tweak to your code to remove the 'magic' string of the mimeType from the code, using the following:static void Main(string[] args){ Bitmap bitMap = new Bitmap(@"test.bmp"); var codecInfo = GetEncoderInfo(ImageFormat.Gif); var paramsEncoder = new...
Please Sign up or sign in to vote.
9 Feb 2011
#realJSOP
StringBuilder mystring = new StringBuilder("AbCd");for (int i = 0; i
Please Sign up or sign in to vote.
2 Apr 2011
Andrew Rissing
How to get that last little nagging line to be covered...
Please Sign up or sign in to vote.
30 May 2011
Ian Good
A possibly simpler version of this is to create an extension method for strings:public static class MyExtensions{ public static TEnum ParseEnum(this string value, bool ignoreCase = false) where TEnum : struct { TEnum tenumResult; ...
Please Sign up or sign in to vote.
16 Aug 2011
Damian Flynn
Here's a couple of gems...From IList to DataTable.From DataTable to array of T.// DataTable: from IListpublic static DataTable ToDataTable(this IList iList){ DataTable dataTable = new DataTable(); PropertyDescriptorCollection propertyDescriptorCollection = ...
Please Sign up or sign in to vote.
18 Sep 2011
Monjurul Habib
How to add namespaces for Razor pages
Please Sign up or sign in to vote.
18 Oct 2011
George Swan
The Regex method uses comma, full stop, hyphen, and apostrophe as word separators. The problem with this is that these characters are not universally used as separators. The hyphen is used to join two words. Could I suggest the following?string input = "Mr O'Brien-Smith arrived at 8.30 and...
Please Sign up or sign in to vote.
4 Feb 2012
udhaya2code
While using Microsoft Text Driver to read CSV data to DataSet in C# in your 64 bit machine
Please Sign up or sign in to vote.
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?
Please Sign up or sign in to vote.
19 Jul 2013
Mikhail-T
How to convert string to text file and return it back to user as a result of a controller action
Please Sign up or sign in to vote.
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.
Please Sign up or sign in to vote.
13 Jul 2012
Manas Bhardwaj
How to access the variables/properties from C# in JavaScript?
Please Sign up or sign in to vote.
29 Jul 2013
Ordiales
When no XP support is necessary. Better Icon structure arrises and easy conversion is allowed.
Please Sign up or sign in to vote.
19 Sep 2013
Amey K Bhatkar
UpdatePanel tutorial.
Please Sign up or sign in to vote.
3 Dec 2013
Darek Danielewski
Clear guide on how to embed an image inside an HTML email
Please Sign up or sign in to vote.
1 Mar 2014
Amogh Natu
This tip provides one solution to the exception "Configuration system failed to initialize" in C#
Please Sign up or sign in to vote.
25 Mar 2014
Saineshwar Bageri
I am going to resolve Issue of Font Displaying Box or Junk While Exporting Crystal report.
Please Sign up or sign in to vote.
2 Jul 2014
Chakravarthi Elchuri
Display data in Multi nested gridview using C# in ASP.NET
Please Sign up or sign in to vote.
12 Aug 2014
Jdarmanovich
WPF MVVM Binding for Multiple Radio Buttons and Win 8 Metro Theme
Please Sign up or sign in to vote.
2 Sep 2014
DiponRoy
1 alternative  
Let’s see how to make a simple model or Entity mapper using reflections in C#
Please Sign up or sign in to vote.
25 Aug 2014
Anoop Kr Sharma
In this Tip/Trick, I am going to show How to create Simple Paint Application in C#
Please Sign up or sign in to vote.
23 Sep 2014
Cryptonite
The Blum Micali algorithm provides for a cryptographically secure PRNG (pseudo random number generator).
Please Sign up or sign in to vote.
31 Jan 2015
Mayur Shah
1 alternative  
Markup Extension that allows you to declare Generic classes in Xaml
Please Sign up or sign in to vote.
6 Feb 2015
Daniel Santillanes
Using ServiceStack's ORMLite framework as part of your MVC project's database access
Please Sign up or sign in to vote.
31 Mar 2015
JIANGWilliam
Tips to running tests reliably
Please Sign up or sign in to vote.
22 Apr 2018
Mohammad Kazem Akhgary
Algorithm of gamma function with high precision using taylor series
Please Sign up or sign in to vote.
10 Dec 2015
Akash Gutha
Exploring ways to create abstract images in C#
Please Sign up or sign in to vote.
1 Dec 2015
Umer Qureshi
How to create a Custom Control so it can be used later and how to give access to some of it properties
Please Sign up or sign in to vote.
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
Please Sign up or sign in to vote.
25 Jan 2016
Prajnan Das
Levenshtein distance can be an effective tool to identify code similarity (or duplicate code)
Please Sign up or sign in to vote.
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
Please Sign up or sign in to vote.
18 May 2016
Simon Bridge
Describes how to write your own SerializationBinder to allow serialization across assemblies
Please Sign up or sign in to vote.
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.
Please Sign up or sign in to vote.
7 Feb 2017
Clifford Nelson
This tip presents a control that is derived from the ItemsControl that uses a UniformGrid to display.
Please Sign up or sign in to vote.
10 Mar 2017
Sujeet Bhujbal
 In this article, I will tell you how to create a cross-browser session expiration popup box using jQuery easily
Please Sign up or sign in to vote.
7 May 2017
Jung Hyun, Nam
Introducing NConcern, a free open source compile-time AOP framework
Please Sign up or sign in to vote.
10 Jun 2017
Alon Lek
Running tasks in parallel while taking into account the dependencies between them
Please Sign up or sign in to vote.
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.
Please Sign up or sign in to vote.
2 Nov 2017
Silvia Campo
How to configure Swagger for web services using token authentication
Please Sign up or sign in to vote.
23 Dec 2017
OriginalGriff
Does your derived class open in the Visual Studio Designer while having no UI? Annoying, isn't it? This is simple to fix.
Please Sign up or sign in to vote.
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.
Please Sign up or sign in to vote.
26 May 2018
Vladan.Obradovic
How to easily write a user's guide for your application using different file extensions
Please Sign up or sign in to vote.
20 Jun 2018
Clifford Nelson
This behavior will select the entire text when a TextBox or PasswordBox gains focus
Please Sign up or sign in to vote.
25 Jun 2018
Clifford Nelson
A way to create a custom derived control with the XAML file attached like a UserControl
Please Sign up or sign in to vote.
21 Jul 2018
BenHall_io
Micro-Benchmarking Your C# - Pitfalls and A Tool To Help You Mitigate Them
Please Sign up or sign in to vote.
13 Feb 2019
Shaenn
C# Worldwide holiday calculation !
Please Sign up or sign in to vote.
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.
Please Sign up or sign in to vote.
26 Apr 2020
Omnia Hussain
A walk-through for creating a custom WPF button that contains both icon and text
Please Sign up or sign in to vote.
17 Jun 2020
Mehdi Gholam
Using VS Code for C# scripts with execute capability
Please Sign up or sign in to vote.
9 Jul 2011
#realJSOP
Avoid exceptions when setting enumerators from unknown/untrusted sources.
Please Sign up or sign in to vote.
14 Apr 2010
Nish Nishant
John, here's a simpler way to do this. This will also handle strings like "3*" which are valid grid length values in Xaml.private RowDefinition MakeRowDefinition(string height){ RowDefinition rowDef = new RowDefinition(); GridLengthConverter converter = new...
Please Sign up or sign in to vote.
19 Oct 2010
Ziv Nitzan
There is also a Visual Studio extention called CodeMaid that has a lot of cleaning options http://bit.ly/diMTaR
Please Sign up or sign in to vote.
26 Aug 2011
Brian C Hart
C# code to format a certain range of Excel cells using the Format As Table button -- but from C# interop code
Please Sign up or sign in to vote.
26 Jan 2011
#realJSOP
When you need to communicate with the app that contains your ServiceHost object, use custom events
Please Sign up or sign in to vote.
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...
Please Sign up or sign in to vote.
12 Apr 2011
Kamran Behzad
You inspired me to contribute the DateTime extensions methods that I use in my programs. (But use at your own risk!). Thank you./// /// Date and Time Manager class./// public static class DateMan{ /// /// Returns the age in years for the given DOB...
Please Sign up or sign in to vote.
27 May 2011
dzCepheus
You can limit the scope of 'p' inside your function:private void Whatever() { DoStuffHere(); // 'p' is not in scope. { var p = this.StatusProgressBar; // 'p' is in scope. p.IsIndeterminate = false; p.[etc] } // 'p' is not in...
Please Sign up or sign in to vote.
27 Jun 2011
charles henington
1 alternative  
Please Sign up or sign in to vote.
6 Nov 2011
M I developer
Try catch block around "A potentially dangerous Request.Form"
Please Sign up or sign in to vote.
11 Nov 2011
lewax00
Unless I'm misunderstanding something, you can just go to properties for the project, Settings tab, and click "This project does not contain a default settings file. Click here to create one.".
Please Sign up or sign in to vote.
18 Nov 2011
rhuiden
I would first like to say that I have been through the same situation, but never took the time to develop a more dynamic converter. I like your idea, but don't like the implementation. If I know what I want to happen (when the value is true then make the control hidden), I have to do some mental...
Please Sign up or sign in to vote.
25 Jan 2012
Sion Cohen
An elegant programmatic solution for having multiple indexers in C#
Please Sign up or sign in to vote.
16 Mar 2012
UberGeoff
This tip explains how to display a jQuery modal pop-up message using server side events.
Please Sign up or sign in to vote.
20 Mar 2012
dhenry_il
How to select a USB serial device via its VID/PID.
Please Sign up or sign in to vote.
12 Apr 2012
OriginalGriff
If you haven't heard of AI Memo 239, then you need to have a look at it. It is an MIT memo from 1972 containing "clever code" and such like. Some of it is absolutely beautiful!
Please Sign up or sign in to vote.
18 May 2012
deeptibansal
Adding event to Microsoft Outlook through Web Application
Please Sign up or sign in to vote.
13 Nov 2012
maximaximum
The article describes how to draw a grid of vertical and horizontal lines in WPF.
Please Sign up or sign in to vote.
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.
Please Sign up or sign in to vote.
28 Oct 2012
Thomas Daniels
A tip about how to create a local server in C#.
Please Sign up or sign in to vote.
1 Jul 2019
Lance Roberts
A tray utility for monitoring log files and popping up error messages
Please Sign up or sign in to vote.
5 Jun 2013
Philipp_Engelmann
A small tool I made to easily change the background image of the login screen.
Please Sign up or sign in to vote.
18 Jul 2013
Mannava Siva Aditya
Uploading multiple files and creating a Zip file in ASP.NET with C#.
Please Sign up or sign in to vote.
16 Aug 2013
Moudud Hassan
Fix to COM component retrieving error:80040154 in web application running in IIS
Please Sign up or sign in to vote.
8 Nov 2018
Nikfazan
This article shows how you can easily make hyperlinks for exploring a folder on server and its sub-directories and downloading the files, using ASP.NET Core MVC.
Please Sign up or sign in to vote.
31 Oct 2013
Debopam Pal
How to bring data from Entity model to Excel file using LINQ.
Please Sign up or sign in to vote.
14 Nov 2013
Ahmed Alaa El-Din
Useful and simple tutorial to add Amazon SES service inside your ASP.NET web application in order to send bulk-emails better and faster.
Please Sign up or sign in to vote.
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#.
Please Sign up or sign in to vote.
24 Dec 2013
Sitang Ruan
How to display a spinner with disabled background when doing postback or Ajax call
Please Sign up or sign in to vote.
20 Feb 2014
PallavSingh
Converting data column (contains OLE db image binary Format) to image file (.jpg)
Please Sign up or sign in to vote.
25 Mar 2014
Karthik Chintala
The tip just gives a brief on what iterators are in C#
Please Sign up or sign in to vote.
14 Apr 2014
Maninder Singh Puhi
Appropriate query to fetch required no of results from DB instead of getting all at on time for binding controls like Gridview, listview etc
Please Sign up or sign in to vote.
22 May 2014
sirol81
Quick&Dirty static method for IBAN code validation