Click here to Skip to main content
15,613,873 members
Everything / Programming Languages / C#



Great Reads

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
by 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.

Latest Articles

by Ammar Albush 1997
Logo Recognition System Program written in C# .NET 6.0 Windows Form (,Tensorflow.keras,Emgu Cv,ScottPlot.WinForms,Newtonsoft.Json)
by Yvan Rodrigues
Complete list of GUIDs found in .csproj files and their descriptions
by Ryan Scott White
CudaPAD is a PTX/SASS viewer for NVIDIA Cuda kernels and provides an on-the-fly view of your Cuda code.
by Graeme_Grant
Dot Net Core LogViewer Control for WinForms, WPF, and Avalonia using the ILogger Framework with Microsoft Logger, Serilog, & NLog in C# & VB on Windows, Mac OS, and Linux

All Articles

Sort by Score


16 Jun 2011 by 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.
2 Sep 2013 by Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
20 Apr 2012 by 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 by Ravi Rachchh
Create and deploy custom timer job definition programatically in SharePoint.
23 May 2012 by Shweta Lodha
Reducing flicker and blinking in DataGridView.
23 Aug 2012 by Vitaly Tomilov
Simplest and quickest way to automatically bind array of image bytes to asp:Image object.
21 Jul 2014 by Cristian Moldovan
jQuery unobtrusive validation plugin with Twitter Bootstrap 3 showing error messages as tooltips
3 Nov 2013 by Hovhannes Bantikyan
This is a simple infinite scroll with Ajax post and JSON. Have fun :)
13 Jul 2022 by Bohdan Stupak
A short example of how byte[] misuse may hurt memory consumption
28 Jul 2014 by lusgon
Uploading a file using WCF REST API and JavaScript
17 Jun 2014 by 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...
19 Jan 2022 by Scott Ward
Using extension methods to make working with JavaScript in .NET Blazor easier to work with
8 Apr 2015 by Michael Sydney Balloni
How to improve on .NET memory management for large objects
8 May 2019 by Bruno Tabbia
Automatic positioning and resizing of explorer windows, without overlapping (for obsessive superusers)
15 Jul 2017 by 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.
5 Jul 2017 by LoveJenny
EasyLicense is an open-source license tool for .NET applications.
23 Feb 2010 by 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,...
3 Apr 2013 by 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.
1 Oct 2013 by 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.
4 Jul 2014 by Chakravarthi Elchuri
How to use WIA supported scanner using C#
14 Dec 2015 by 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 by Alberto M.
How to control TP-Link Smart Plug (HS100 or HS110) with C#
8 Apr 2020 by Gunnar S
Implementation of the Poisson Cumulative Distribution function for large Lambdas
10 Jul 2018 by Viktor Kovács
Parallel foreach loop implementation for nested loops
28 Nov 2011 by Akos Orban
Set Owner of a WPF Window to a Form
4 Apr 2015 by Jean Carlo S. Passos
CRUD over Association Entity that maps to association tables
31 Dec 2019 by Marc Clifton
Please don't do this!
29 May 2010 by becker666
Sample working C# code to carry the IPN
1 May 2012 by AspDotNetDev
Call a series of functions until the return value meets a condition without a chained-if or short-circuiting.
19 Apr 2012 by Deepak_Sharma_
This article will show how to create an auto-suggest TextBox that will suggest data from a SQL Server database column.
15 Feb 2013 by Dread_Sharp
How to build an easy plugin system with C# which only takes about 30 lines of code!
27 Jun 2014 by Sergiy Korzh
How to make search by StartsWith criteria in Azure Tables
13 Dec 2021 by honey the codewitch
An INI reader that is easy to use, easy to port, relatively efficient, and to the point
7 Mar 2010 by Luc Pattyn
This is an alternative to "Week Numbers According to ISO8601".
26 Feb 2013 by Jeffrey T. Fritz
A throw-back to a .NET 1.1 feature to use instead of writing an extension method.
6 Feb 2023 by shunninghuang
Software named M1.NET which shows the details of decrypting arcade game audio
18 Jul 2014 by Matthew Givens
How to change databases at run-time in a user-friendly manner.
22 Oct 2014 by Mathew Soji
This tip guides through implementing a basic REST based Web API service with multiple GET methods and its consumption using JQuery client
2 Jul 2015 by Bharat Mallapur
Sample project to host MS-Chart in your WPF application
11 Jun 2021 by Mashudu Nemukula
Generate C# object class from common SQL databases types
21 Oct 2015 by OriginalGriff
A simple "scratch card" like control for Winforms, where the user can reveal the image by "scratching off" a cover
19 Nov 2009 by Aviad P.
Can the C# ‘var’ keyword be misused?
9 Feb 2011 by 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 =...
21 Jan 2013 by Srinivasu Pemma
This tip provides an easy way of dealing with different types of data sources for LINQ Group By taken from my blog
12 Mar 2013 by 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#.
15 Oct 2020 by RickZeeland
PostgreSQL notifications Windows Forms application
19 Feb 2019 by Steffen Ploetz
How to compile and run the first C# application in ReactOS
9 Feb 2018 by Meshack Musundi
How to highlight TextBlock text using attached properties
24 Jan 2010 by Md. Marufuzzaman
Using of .NET TransactionScope
13 Jun 2011 by 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
22 Jul 2013 by Igor Ladnik
An interesting code illustrating the influence of Just-In-Time (JIT) compilation in .NET on code formation.
14 Dec 2014 by MarkLTX
Automatically implement INotifyPropertyChanged for every property in Entity Framework 6.0 entity classes
22 Jan 2015 by 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.
16 May 2015 by Mark Heath
Learn how to get started with MahApps.Metro, an open source library for giving your WPF applications a modern look and feel.
14 Jan 2022 by 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.
10 Jun 2016 by TheForceIsSharp
ASP.NET Core Web API, Multiple Get or Post methods with single controller
11 Oct 2017 by Clifford Nelson
This tip presents a way to display checkboxes for selection of ListBox Items instead of the default highlighting
29 Nov 2017 by Danny Chu
Learn how to detect if client has JavaScript enabled or disabled at your backend webserver
15 Oct 2018 by moneema14
A parser event listener for PDF tables to .NET Dataset object
4 Oct 2019 by 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.
23 Dec 2019 by honey the codewitch
Easily implement efficient backtracking capabilities over any enumeration
13 Mar 2020 by honey the codewitch
How to provide custom formatters for string.Format() in C#
28 May 2010 by
This is a simple article describing how to create an add an outlook appointment to your MS Outlook Calender.
9 Jul 2011 by 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...
19 Dec 2011 by 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 = "", Port = 587, Credentials = new...
30 Mar 2013 by 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 by luivis7
A simple example of how to use jQuery Autocomplete to make an AJAX call to WebAPI in an MVC4 application.
9 Dec 2013 by dietmar paul schoder
How to get the location of a specific IP-address
6 Jun 2014 by Amir Mohammad Nasrollahi
How to list the installed applications of your system and their setup details in C# language
30 Sep 2014 by WaqaarRasool
Heartbeat Implementation in WCF Service in C#
24 Apr 2015 by arora.abhishek
In this tip, we will learn about the new feature of C# 6.0, the Null Propagation Operator.
2 Sep 2015 by Peter Leow
Get your database to generate unique running IDs for your application
11 Feb 2016 by Martin Gmuca
A brief introduction to Windows 10 IoT development
11 Jan 2019 by akshay_zz
This article will provide you the alternative way to navigate page in a crystal report viewer, as default paging looks broken
23 Apr 2021 by honey the codewitch
BinaryReader needs a better way to read strings and types. Here's a quick and dirty fix
16 Aug 2022 by Iulia Pitutiu
This document describes how you can benefit from using Azure files in your .NET web application.
16 Nov 2010 by alrosan
How to change input language
30 Oct 2011 by 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...
17 Aug 2012 by Arman Aşçı
Parallel port data register control with C# .NET 2.0 and inpout32.dll.
4 Aug 2013 by Faisal(mfrony)
Understand the use of covariance in .NET 4.0
12 Aug 2013 by Le Sourcier
This tip helps in using font icons as ImageSource.
10 Feb 2014 by harleydk
Image Orientation of Images Uploaded via ASP.NET fileupload Control
11 Jan 2015 by Muhammad Hassan Tariq
Glimpse Extension for server side debugging and diagnostic information of ASP.NET applications
11 Mar 2015 by Ivan Yakimov
In this article I'll explain how to make something similar to load balancer on your single developer machine.
8 Apr 2015 by Dariush Tasdighi
Multi Select Drop Down List Directive with Latest Bootstrap and AngularJS
24 Jun 2015 by Nadun Liyanage
This tip describes creating a user control to display a drop down calculator that pops out like the DateTimePicker in Visual Studio
1 Oct 2015 by Clifford Nelson
Presents a behavior to prevent entry of anything but digits into a control
20 Oct 2015 by Manish Dubeyy
How to debug the design time errors in WPF XAML file?
26 Nov 2016 by JamesFaix
Get a collection of all running Excel interop Application objects (not just the active one)
22 Apr 2016 by Darryl Bryk
C# code for a low-pass Butterworth filter is presented
15 Mar 2017 by Ricardo_Torres_Torres
Read text file and insert mutiples records in just one SQL Sentence
6 Aug 2016 by Clifford Nelson
This tip presents a way to have disabled items in your ComboBox
5 Feb 2017 by 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.
26 Sep 2017 by Clifford Nelson
A behavior that allows the developer to bind an IList to SelectedItems of a ListBox or MultiSelector.
19 Mar 2020 by honey the codewitch
Learn how to use a powerful programming technique for multitasking in your projects
17 Mar 2022 by Ladware.Net
Blazor and Windows Form desktop application
26 Apr 2020 by Omnia Hussain
A walk-through for creating a custom WPF button that contains both icon and text
5 Aug 2010 by JohnCAldrich
Calculate a *Proper* Star Trek style Stardate
8 Feb 2011 by 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.