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

.NET

.NET

Great Reads

by Daron Cox
If you're trying to integrate with UAG from a mobile device, this tip is for you!
by Anurag Prajesh
Add new user registeration information in XML with C#
by CPallini
How to generate a spiral numerical pattern without using arrays
by Nirosh
This tutorial is designed for .NET programmers who need to understand ‘Nido’ framework and its application.

Latest Articles

by Daron Cox
If you're trying to integrate with UAG from a mobile device, this tip is for you!
by Anurag Prajesh
Add new user registeration information in XML with C#
by CPallini
How to generate a spiral numerical pattern without using arrays
by Nirosh
This tutorial is designed for .NET programmers who need to understand ‘Nido’ framework and its application.

All Articles

Sort by Score

.NET 

by Daron Cox
If you're trying to integrate with UAG from a mobile device, this tip is for you!
by Anurag Prajesh
Add new user registeration information in XML with C#
by CPallini
How to generate a spiral numerical pattern without using arrays
by Suresh Dasari's
Auto Generate Code (CRUD) for 3 Layered architecture (Entity, Data Access & Business Layer) with Stored Procedures based on table design.
by jfriedman
We are going to look at some real life problems and then try to determine the best way to solve them with the principles set forth in the previous article.
by Chai_Pot
How to use MySQL as database in VB.NET applications.
by didourebai
How can I integrate Swagger in ASP.NET Web API project
by Habibur Rony
Naming Convention of Test Method for Unit Testing using Behavior Driven Development (BDD)
by Bohdan Stupak
"Method can be static" Microsoft Code Analysis warning may hide a violation of object-oriented design
by Daniel Brousser
Custom TextBox control for UI input validation
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...
by Tomaž Štih
How to (dynamically) implement ToString() as a Lambda function
by Pedram_Niloufari
C# .Gif viewer / Snipper control
by sumit_kapadia
Simple and free approach to manage your code on cloud with git-SCN and dropbox
by #realJSOP
Don't reinvent the wheel - use the one that's already on the cart.
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...
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...
by jfriedman
public static class StringExtensions { public static bool IsNullOrWhitespace(this string s) { if (null == s) return true; return string.IsNullOrEmpty(s.Trim()); } }
by JBildstein
Reading and writing Bitmaps with full 16bit per channel (and possibly more)
by Peter T. Ringering
A program that makes editing code comments and XML comments easier.
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...
by Member 12660776
Programmatically Adding New ConfigurationSectionGroup Corrupts Declaration Section With Multiple Group Declarations.
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.
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.
by RickZeeland
Version all your .NET Core projects in one swoop fell!
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.
by Jacob Himes
My go around to an Entity Framework alternative
by Pavel Durov
Tip about converting .NET DateTime to Unix double timestamp and vise versa - on .NET
by Jon_Slaughter
Simple class to encapsulate a double reference
by AthosXtreme
How to build a .NET wrapper to send MaxL commands to Essbase.
by B.O.B.
How to get correct caret position from Textbox control
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.
by Yaseer Mumtaz
.NET interview questions and answers with real world examples and code snippets
by GPUToaster™
.NET Interop Revisited
by Amir Hamza Md. Kayes
.NET interprocess communication using named pipe
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.
by Vinayaka Krishna Shenoy
.Net Performance tip - 2
by DaveAuld
Here is a better evaluation of performance in .Net of the If / Switch operations;http://www.blackwasp.co.uk/SpeedTestIfElseSwitch.aspx[^]
by Vinayaka Krishna Shenoy
.Net Performance tip - 3
by Ben Hall (failingfast.io)
Micro-Benchmarking Your C# - Pitfalls and A Tool To Help You Mitigate Them
by Ben Hall (failingfast.io)
An under-utilised setting that can offer substantial performance gains
by AlexF185
A dynamic progress bar control easy to use and literally plug and play
by emadns
A basic tutorial for ReportMax tool
by emadns
Second tutorial for loading data through code - Sqlite
by emadns
Using the Chart control in ReportMax
by Bismark Appah
.NET Runtime Library for Delphi
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.
by Peter Piotti
A clean, simple alternative to using the Entity Framework for stored procedures data access in a .NET/SQL Server environment
by S. M. Ahasan Habib
.NET TransactionScope and its default Transaction Isolation level issue.
by Nikita D. Sinelnikov
HowTo: make the report background (elements) of Microsoft .NET Report (.rdlc) non-printable
by BrokenEvent
.NET WinForms Tray icon implemenation with Win7 and Vista features: GUID identification, large custom icons, custom UI instead of the hint, etc.
by Yaseer Mumtaz
XML input parameter to RESTful API using HttpClient and bypassing the SSL certificate
by Alberto M.
Zlib compress / decompress implementation using .NET 4.5.1, with no external DLLs
by Muthu Nadar
This article will explain about null coalescing operator along with its advantage and disadvantage.
by Nadege Rouelle
How to add initialization data when configuring Entity Framework Code First.
by Dave “DWC” Curry
How to wire up drag+drop events through multiple objects.
by Subodh Raghav
In this tip, you will learn how to send an email in your ASP.NET application.
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
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.
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
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
by The Zakies
Tutorial 1 (how to create a vector graphics program)
by The Zakies
[tut4] how to draw lines & to draw different types on end shapes like rectangle and circle using C#
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
by Subodh Raghav
A web service is a web application (a piece of software component) which is available on the internet.
by Kailash Shastri
Tips and tricks to speed up your VS.NET builds
by Michael Bogaerts
What brings the 15.2 release for XAF (win) developers
by simonp_ca
How to remove Windows service from Service List (not just stop/disable it, but to delete it from the list totally)
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.
by charles922
Use of the Trapezoidal Rule to integrate a function
by Sumit Chawla
2-Legged OAuth Authentication in .NET (C#)
by JatinKhimani
Develop a web application in 3 layer architecture code style
by GPUToaster™
A simple way to detect bitness of an OS Programatically. (C# and C++ examples given)
by Reinhard Ostermeier
In .NET 4.0, you can also use the new System.Environment.Is64BitOperatingSystem and System.Environment.Is64BitProcess
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...
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
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...
by charles922
3D programming with OpenGl and C# to create an interactive puzzle
by Calabash Sisters
This article aims at talking about some useful solutions for you to merge to multiple excel worksheets into one.
by saad_lah
Complete guide for beginner to setup EmguCV project and run first program in Visual Studio
by toneware
A utility that monitors a selected directory for changes
by Jeong, WonYoung(Brad)
Making BitField with C# alternative to BitField made with union and struct of C++
by charles henington
Simple user defined Cipher Transform that I got the idea from https://www.codeproject.com/Articles/5319044/ARC4-Encryption-Library
by MarcusCole6833
A basic tutorial on how to Use WCF service with the Entity Framework
by Math08avan
A simple example for CRUD actions using WCF service in ASP.NET
by Darryl Bryk
C# code for a low-pass Butterworth filter is presented
by TheGreatAndPowerfulOz
How to recursively select all descendants using an extension method
by Michiel du Toit
Code for a C# string.Like extension method.
by sx2008
An easy-to-use class to prevent multiple instances of your application from opening and focusing/activating the first instance window.
by Graham Wilson
A collection of simple .NET Framework/.NET WinForm controls and utilities.
by YOSSI ROZENBERG
A computational statistics class in C#
by honey the codewitch
Easily add progress reporting to your console apps
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.
by RickZeeland
A Custom Flat-style Numeric UpDown Control with a simple demo application written in .NET 6
by cesar_boucas
A custom derivative of ServiceHostFactory to control how WCF service hosts are created.
by Gregory Morse
Custom TAUS Data Provider to allow increased multilingual support using Google Translate's web interface
by Dirk Bahle
Making better use of the available UI space.
by Eddy Vluggen
A simple scripted solution to automate your daily builds (cost 5 minutes of scripting)
by Erik Nagel
Usable demo demonstrating some aspects of application architecture
by Sambhav Yadav - Sam D Silva
ASP.NET page/master page/user control's life cycle from the perspective of Session and View State
by honey the codewitch
A handy code snippet that can set indentation levels while rendering multipart documents with a TextWriter
by Frank T. Clark
Improving file transfer speed for large files
by honey the codewitch
BinaryReader needs a better way to read strings and types. Here's a quick and dirty fix
by Afzaal Ahmad Zeeshan
This tip is to provide an overview of writing strings in ASP.NET web applications to avoid concatenations.
by Vasily Tserekh
A list of the problems I had to address and how I solved them
by Bruce Greene
A bare-bones Find and Replace tool for AvalonEdit
by PIEBALDconsult
A Trim method for strings that provides flexibility without requiring the use of large character arrays
by Nuwan Karunarathna
This a foldable content control for UWP platform.
by shijo joseph
An ADO.NET Layer for SQL Server and Oracle which makes it easier for interfacing with database
by honey the codewitch
A circular buffer implementing IList
by S. M. Ahasan Habib
I will demonstrate a generic factory method which will create object from interface type parameter from an assembly (either current or provided) with the help of reflection
by honey the codewitch
A fully generic ordered dictionary class in C#
by Southmountain
Some take-away to improve the quality of desktop software
by Herbert Lausmann
An IconBitmapEncoder that produces high-quality icons, written in VB.NET and C#, WPF
by Espen Harlinn
Stuff I've found useful and interesting
by RickZeeland
An easy way to edit and exchange XML config settings
by Jarno Burger
A managed wrapper around FreeFrame, to give your video frames some cool effects
by Sitang Ruan
How to display a spinner with disabled background when doing postback or Ajax call
by agent154
A method to move rows within a DataTable
by johannesnestler
Nice solution agent154, I'd just suggest to implement it as extension methods for data row: (and I don't liked your "error reporting" with the '0' Value - because '0' could be a valid index). But I have to say, even if you don't have a database behind the datatable you can use sorting (LINQ,...
by Michael Bergman
Using Windows Communication Foundation to build a simple web server
by Alessandro Lentini
How to write a simple multi-thread queue for the typical producer-consumer process
by Akash Gutha
This tip is aimed at providing a simple solution for simple page to page navigation system for your UWP apps.
by PEtter Ekrann, Martin Helgesen
A strange idea I had for doing multithreading more managable.
by Xavier Junqué i de Fortuny
Generalized continued fractions are transformed into simple continued fractions (SCF) and basic operations (-, +, *, /) can be done.
by Marlon Hizole
An elegant approach to pagination
by ryowu
A game that shows how to use C# drawing and how to create 2D anime.
by shijo joseph
An easy to implement yet powerful logging library which requires absolute zero learning curve
by Blaž Umek
A control that displays multiple graphs simultaneously and automatically adds different scales
by G.TR
how to use NUnit to code tests
by Xavier Junqué i de Fortuny
A rational class to extend numeric functionality
by Silvia Campo
Different options to create the maps
by massimiliano aronica
An HtmlHelper for an extended DropDownList, working with custom objects and displaying html options
by David A. Gray
The routines in this library can parse any string that I can throw at it, including Common Name strings read from X.509 Digital Certificates.
by OriginalGriff
Sometimes, it is helpful to find out if the .NET framework is installed on a machine, or get a user to check over the phone. But, some people should not be allowed near Regedit or the windows folder, so here is a safe way to get them to check.
by Charles Oppermann
Two alternate possibilities:One is conceptual. Consider why you are asking the user. Is it because you have a program or website that requires a specific version? If so, you are expected to distribute the proper redist package with your application.Also conceptually, instead of making...
by charles henington
//Also you can get the path like this because not everyone uses Drive C:\ as I use Drive F:\ string path = Environment.SystemDirectory.Remove(3) + @"Windows\Microsoft.NET\Framework"
by DaveAuld
A safe way to get the user to check if the .NET Framework is installed
by scott_liu
By use of a cutomized metadata provider, MVC model data annotation validation messages can be localized in a simple and elegant way.
by Bruce Greene
A class for reading values by section and key from a standard ".ini" initialization file.
by bluecurve01
How to parse robots.txt and robots meta tag
by MarcusCole6833
A basic Windows Forms Desktop Application to return a Julian Date
by MehdiNaseri
In this tip you will learn how to collect system information by using System.Environment and System.Management.
by Kaushik S Murthy
This application allows you to know the status of caps lock whenever the caps status is toggled
by Member 626383
Using grid and search grid using Ajax or without Ajax, and using Resource Files to enable multi language support
by Eddy Vluggen
A few fields to store general information on the provided code
by LLLLGGGG
A really simple implementation of a C# menu for console applications
by lucafarias
A Simple C# Player Mp3 with NAudio
by Yvan Rodrigues
A demonstation of accumulators and operators
by Xavier Junqué i de Fortuny
Basic operations (-, +, *, /) of two finite simple continued fractions
by Tarek Elqusi
I created a simple form with a button to add a label control at run time sequentially numbered; labels are movable and lines are drawn between labels.
by B. Verboven
Convert a generic list of (recursive) objects into a simple hierarchical TreeList
by Anurag Saini
A tool to generate MD5 and SHA-1 checksums.
by charles henington
This is an alternative for "Send Mail With Attachment File"
by bobishkindaguy
A simple entry box for various numbers, especially phone numbers.
by Howard 9448490
A WYSIWYG Printer Interface for Rich text
by Nguyen.H.H.Dang
A very simple Thumbnail Viewer inherited from FlowLayoutPanel for beginners
by Pasan Eeriyagama
This article focuses on a Very simple and Robust way to export Data to EXCEL
by honey the codewitch
Creating an application that can run once, but then accept command line args from subsequent runs
by Nitij
Provides an abstracted way to map data between user interface and the server
by Marijan Nikic
A small command line utility for synchronization between two folders
by Erion Pici
Generating automatized PDF reports based on Docx templates and Business-Logic XML-serialized data
by ahsanriaz1K
I will give a solution to the following problem "Response.TransmitFile(sFullHtmFilePath)" gives unformatted display of htm file on browser on client side.
by George Swan
An alternative solution to the Spiral Print problem
by CHill60
Simplify complex if-statements with "where value in list"
by Abdul Quader Mamun
This article explains why a well organized pattern is required to develop a robust software application.
by Sen Jacob
A simple task scheduler utility by which you can schedule a task to run at any time or interval
by Sen Jacob
This is an alternative for "A Task Scheduler Library for .NET Applications"
by Marc Clifton
Some code tweaks including the ability to alias a mapped property name
by Alessandro Lentini
This tip is connected to my previous one. I show how to use .NET 4.0 BlockingCollection in a simple way.
by Vijay Gill
Uses Unity for DI and NLog for logging
by Rajesh Buddaraju
A simple tool which is useful to calculate our day to day work hours
by Tomasz Malicki
Most data types have a built-in ToString method, but not all, and what's more, the default method can throw an error if, for example, the object is null.
by Erich Ledesma
A simple extension to map ditionary entries using lambda expressions
by Michael Rosqvist
If you want to measure something on the screen, here is a utility.
by veen_rp
An add-on tip to articles already posted on Code Project
by B. Clay Shannon
In which the author takes the "That is an Exercise Left to the Reader" cop-out to Extremes
by nilotpalbarpujari
VS 2010 style toolbox written in C#
by Clifford Nelson
This tip presents a way to display checkboxes for selection of ListBox Items instead of the default highlighting
by Mario Vernari
Here is a simple trick for simulating the shared-sizing feature of the WPF Grid even in a StackPanel fashion.
by ugo.marchesini
An alternative way to use BackgroundWorker: more readable, more concise
by Vinayaka Krishna Shenoy
From past few days i was doing some R & D on the upcoming Entity framework from Microsoft, and i found it was interesting in many ways,The first part which i liked the most is -Querying to the Entity Data Model(EDM) rather than the real data store.At a high level , we have plenty of...
by Louwgi
HTML5 SSE example application
by Vipin_Arora
Abstract Factory Design pattern example in C#
by Steven Coco
This illustrates a simple pattern that provides a lock that can always be invoked; and may be a no-op for a non-synchronized implementation.
by Marc Clifton
Please don't do this!
by Prakash Lekhak
This article describes how to access master page control from content page.
by babu saravanan
This article explains how to retrieve TFS 2010 project check in details from C#.NET code
by Tantum
Access values of ProgressBar created at runtime
by V R Shukla
How to access Active Director users on a WinNT network and show them in a dropdown list.
by Ramanujam Shankar
Show data in grid view control of Windows Stores App using web service or WCF
by Subodh Raikar
Accessing SSRS Reports from SharePoint Site using C#
by M-Badger
How to discover all the controls on a form at design time for a property editor
by Ravi LVS
Datatable in ADO.NET is highly useful to do in memory data related operations. But it is very painful to update data when it is bound to a datagridview or bindingsource.While I was developing an application in .NET with C#, I came across this problem in which I had to modify a data table of...
by prince sanghi
How to create an Acordian view for ListView in XAML for Windows WPF, Store, Mobile Application
by gunjan k saxena
This tip will help to create an action filter to compress the contents like Json, partial view, etc.
by Vladyslav Chernysh
The goal of this tip is to share knowledge and experience on ActiveX usage in .NET applications (back-end & front-end).
by Vipin_Arora
Adapter Design Pattern in C#
by honey the codewitch
Use TaskCompletionSource to turn an event or callback based model into a Task based one
by MarkLTX
Allow users to "magnify" your WPF application!
by Steffen Ploetz
How to realize text past functionality via inter process communication for your OpenTK based C# OpenGL application running on X11
by VijayaMalla
Adding a custom pushpin to maps using Bing Maps SDK.
by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Ever wondered how to add HTML file contents to the aspx page by code. Take a look at the implementation.
by Prakash Singh
Resolution of Security rule has invalid Port range issue
by B. Clay Shannon
How to use temporary MessageBox.Show()s in your C# app to quickly see data about exceptions
by MehdiNaseri
A simple application for adding users to active directory
by Douglas de Alvarenga Silva
Add-in Word for PrintScreen
by Sascha Manns
How to add the estimated time to read to a .NET Core Blog
by Ismael Almonte
Adding an http security header to web reference and using Oracle CRM stateless
by middelpat
Adding and subtracting with dates and times ignoring weekends
by Fiyaz Hasan
This article shows you how to add Angular Material in ASP.NET Core AngularSpa template
by Purushotham Agaraharam
Setup file creation and adding a connection string custom control.
by Redslide
Modify MVC Routing to allow routes such as /Electronics/Software/Operating-Systems/PC/Windows-8-Installer
by Matthew Givens
Two ways to add functionality to .NET controls
by PIEBALDconsult
This is an alternative for "Adding Functionality To .NET Controls"
by OriginalGriff
How to add images to a Winforms Project so they are accessible as resources
by MarkLTX
Automatically implement INotifyPropertyChanged for every property in Entity Framework 6.0 entity classes
by B. Clay Shannon
How to add the necessary code for additional Web API data points
by Shesh Lamichhane
Step by step to add the transformation files of app.config in your .NET Windows service
by B. Clay Shannon
Easily add Version Information to the main form Title bar of your Winforms app
by #realJSOP
Evaluating epressions in an ad-hoc condition.
by Andrew Rissing
This is an alternative for "Ad-Hoc Expression Evaluation"
by Ankit Bansal MVP
This articles explains the insertion of data into SQL Database using Stored Procedures with Output Parameters. Some Bootstrapping is also used to create a good looking HTML.
by Vinay Jade
ImageButton control can be used as AdRotator with help of UpdatePanel
by Peter Sun (247)
Demonstrate how to create WPF TrewView with multiple levels of HierarchicalDataTemplate from C# code-behind without XAML using MVVM for data binding
by BradodarB
Simple example outlining how to optionally employ AHAH based views in an MVC application.
by Christopher John Paul
Ajax Asynchronous Postback Method
by Vinay Jade
Using Seadragon, you can simply zoom-in and zoom-out an image
by Yogesh Jamkhindikar
Solution if Ajax method not calling Controller method every time its invoked
by Prabu ram
I am just trying to wrap the jquery ajax methods under Typescript to give a better control from the rest of the code.
by jurhas
An algorithm for sort alphanumerical strings in their own natural way
by Dominic Burford
How to allow CruiseControl.NET to be self updating
by Joezer BH
Avoiding a cumbersome message box or input box that locks the application in WPF.
by HiDensity
Class providing methods to count up a string using a definable character set.
by nickdenker
An ORM style layer which turns Azure Table Storage into a cheap and scalable indexed noSQL database - without the costs associated with Azure CosmosDB.
by U_IO
Consider possibility of alternative syntax usage to refer and access to last anonymous objective variables in C# instead of using construction in code.
by Casey Witt
A class for implementing BeginEdit/EndEdit functionality in a "Using" Block
by Wild-Programmer
Boost application speed and performance
by reshi999
Thanks for that. In MS SQL Server, I use the following technique to avoid full compile:DECLARE @sql VARCHAR(100)DECLARE @pk INTSET @pk = 2SET @sql = 'SELECT id, pcname FROM pod WHERE id = ' + CAST(@pk AS VARCHAR)EXEC (@sql)-- or -- EXEC sp_sqlexec @SQL
by Thomas Roll
A .NET equivalent of Java's AdjustableSemaphore
by George Swan
A .NET7 version of a Rotated Binary Search method
by fs7744
Easier to use MemoryCache with AOP example
by George MVC Study
This tip shows an example of ASP.NET MVC cascading dropdown list.
by dontumindit
An Easy Way To Query a Database
by Andrew Rissing
The following samples should take advantage of using statements and furthermore built in features of the ADO.NET framework. Furthermore, if you open a connection, make sure you open it at the latest time possible and close it as soon as possible.Edit: While I was originally not trying to...
by FZelle
You are both wrong with the DataAdapter.Why do you think there is an overload with the querystring and the connectionstring?public DataSet select_query(string query, string con_str){ try { using (SqlDataAdapter da = new SqlDataAdapter(query,con_str)) { ...
by woric
The sample code provided by Andrew Rissing is a huge improvement over the original, but incorrectly catches the exception and displays a MessageBox. (Andrew correctly points out this is not a good idea.)A better solution is to allow the exception to fail:public DataSet...
by PrimeCoder
Nice,How about adding a couple of other methodspublic static void Parameter(IDbCommand command, string naam, object value){ IDbDataParameter par = command.CreateParameter(); par.ParameterName = naam; par.Value = value ?? DBNull.Value; ...
by Gianmaria Gregori
How to add a random sliding effect to the Bakery home page
by Marc Clifton
Alternatives to If-Then-Else with Extension Methods and Functional Programming Techniques
by TheGreatAndPowerfulOz
Gets the digits and the sign of an integer in an array
by honey the codewitch
Add progress reporting to your downloading or copying using this code
by massimiliano aronica
Speed up the loading of the main view by automatically loading partial views in async
by Yuriy Magurdumov
Simple generic data structure to maintain hierarchical objects
by rmliu
Resize either images or canvas only, resize batch images
by Farzan Hajian
Analyzing HTML documents using NSoup and ExCSS libraries
by Gregory Morse
Analyzing Text With DirectWrite in .NET Using SharpDX
by Mukund Thakker
Android GCM Push Notification
by Callum Linington (UK)
My way of diminishing the need to write out all those angular script files
by Srinivasan Sankaranarayanan
A Simple CRUD application for ASP.NET Webforms using Angular JS
by Bert O Neill
AngularJS and Web API Active Directory Security (Authorisation)
by Thinira
In this tip, we will discuss how to setup Angular 2.0 in Visual Studio and write a very basic “Todo” application.
by Yaseer Mumtaz
AngularJS ng-grid export to CSV workaround for Internet Explorer to avoid showing "Save" dialog box.
by Asib Al Amin Talukder
This tip describes the angularJs routing and how to configure and work with classic ASP.NET MVC application.
by anilkumar.6714
This is an animated label in C#.
by Malak Zia Nasir
Override the Windows Store app default splash screen with an animated one
by Yossi Yaari
A basic yet generic state machine implementation
by Malte Klena
Build a StreamReader that can differentiate between ANSI and UTF8 regardless of a byte order mark
by cyprussun
AnswerBox is just another replacement for the inflexible MessageBox.
by Tyrone Roson
Fun with Interchangeable UI Controls
by _Amy
Validating the client using Lightweight Directory Access Protocol (LDAP)
by Vasudevan Deepak Kumar
This is a simple class/demo application that shows how to check whether the account that is being used to run the application has administrative rights.
by Member 3783976
The key to restart application properly is where you should code "Application.Restart();" in
by billxie
Advanced technique to apply animation concurrently on multiple controls.
by B. Clay Shannon
How to apply Attribute Routing to Web API Controllers
by Ponkarthikeyan Thangavel
This tip describes about applying reusable read-only styles for WPF controls at Application/User Control level
by Steffen Ploetz
How to implement modal windows with OpenTK on Linux, that behave like dialog boxes on Windows
by Steffen Ploetz
How to provide modal UI application components without leaving the UI thread or pause/block it
by Alexandros Pappas
Display of a context menu when pressing the Apps key in a DevExpress GridControl
by DotNetSteve
Manage an overgrown appSettings section
by shouvith hydrose Kerala
This article explains how to change Arabic Calendar Date to English Calendar Date in Windows Form C#.
by Farhan Ghumra
Learn how to create zip archive and extract it without any 3rd party library
by Steffen Ploetz
Compare the speed of generic collections running on .NET Framework 4.6.1, .NET Core 2.1 and Mono/.NET 4.5 based on the framework's version of List against Loys's version of AList.
by Alaa Ben Fatma
Generate your arrays using a GUI tool
by Rahul.KumarSharma
Difference and simple implementation of as, is, and Reflection.
by Ahmad F Hassan
An easy way to view hierarchical data in a simple ASP .NET Repeater
by Hugo Carnicelli
During this article, we are going to explore what is currently necessary to run an ASP.NET 5 website on Ubuntu.
by Jani Giannoudis
Adapt properties like visibility or enabling between ASP.NET Controls.
by Anurag Prajesh
How to add banner and slideshow in your website with adrotator
by ChienVH
In this article will show you how to work with ASP.Net and Paypal with Dynamic Ordering Values
by Sajid Qayyum
Describes authentication management using cookies
by Armando de la Torre
How to implement a calendar pop-up without JavaScript
by mike2315
Using jQuery, we have a very simple solution for this.Add jQuery and CSS in the head tage and these two lines of JavaScript:<script...
by Herman.Instance
Short route to fix this issue
by JoaoSousa23
This article will show how to integrate Microsoft Azure Application .Insights into a web application using ASP.NET Core 1.0 to Detect, triage, and diagnose issues in your web application
by TheForceIsSharp
ASP.NET Core Web API, Multiple Get or Post methods with single controller
by Ruhollah Heidarpour
Just another ASP.NET Persian(Jalali/Shamsi/Solar) / Gregorian Datepicker
by Karthik_Mahalingam
Show/hide the loading GIF image while exporting a file from server
by virang_21
This tip discribes how to implement filtering from inside ASP.NET gridview header row
by virang_21
This article describes how to implement row drag and drop inside ASP.NET Gridview using Jquery TableDnD plugin and how to pass reordered sequence back to server
by Neohuman Software
How to: Using ASP.NET Identity using Azure Storage Tables
by JoaoSousa23
This tip walks you through the steps for creating a ASP.NET MVC 5 Web Application using Bootstrap as template for layout.
by JoaoSousa23
ASP.NET MVC 5 – Entity Framework 6, CRUD Operations on Visual Studio 2015
by Luis Manuel Prospero Mano Batista
ASP.NET MVC 5 SignalR, SqlDependency and EntityFramework 6
by Alex_1
Cool menu, MVC bootstrap menu HTML helper
by P@Yogesh
Get information about how to work with angularJs bundling and minification in ASP.NET MVC
by Ahmed Bakodah
This post is about how to demonstrate CheckBoxList in ASP.NET MVC 4
by Oetawan
Extend ASP.NET MVC behavior to auto wire controller dependency
by JoaoSousa23
An easy way to perform fire-and-forget, delayed and recurring tasks inside ASP.NET applications
by Riverama
Improve ASP.NET MVC based SPA application performance by using script Bundles with requireJS
by LKC05
ASP.NET MVC vs Webforms
by Roberto Ferraris
How to use templates in ASP.NET MVC to edit enum fields
by BalaG Ganesan
ASP.NET MVC4 - Bundling and Minification
by Francis S Michael
Some thoughts about session expired problem in ASP.Net
by Christopher John Paul
Prevent users from entering comma
by TheCoolCoder
Numbering for Multilevel ASP.Net Treeview using CSS Counters
by brunofer2007
Easy way to sort nodes in a TreeView using a recursive function.
by nasir_ml
ASP.NET textbox validation made easy.
by James Walsh Jr
The differences between parameter and model binding with ASP.NET WebAPI
by User 10259217
Handy bridge between ASP.NET webservices and Java
by ChienVH
This article will guide you how to implement ASP.NET website with multi-language
by kadaoui el mehdi
In this trick I present how to prevent an attack by a hacker on Asp.net website.
by Olga Tabulov
DropDownList requires the binding object to have a property
by congiuluc
How to check Email address during user registration with ASP.NET MVC 5
by SergioAmorim
A way to quickly find the CLR version of a .NET assembly from the command line
by Christophe Bertrand
A parser for AssemblyQualifiedName for .NET
by Akhil Mittal
Helper class to compare two class objects while unit testing
by Marc Clifton
Instantiate the exception that you want in an assertion
by Haydn Chapman
A method to update a table column with a random set of specified values
by Francesco Bagnasco
Just a quick sample to clarify what we can do and what we can't
by Pathak Ashwin
Asynchronous Web Service Call
by Arkadiusz Kaɫkus
Property is a simple idea, but like many others can be misused. This tip describes asymmetric property anti-pattern and shows why properties should be symmetric to be maintainable and intuitive.
by Tristan9
Better use async / await in web applications
by Super Lloyd
Show how to make OData code async friendly
by ashish__shukla
Asynchronous ActionMethods in MVC can improve application performance
by Kumar_Jitendra
The asynchronous controller enables you to write asynchronous action methods.
by Nitipan
This is my helper class: public class AsynchronousMethodHelper { private static Delegate _method; private static Delegate _callBack; public static void AsynchronousExecution(Delegate method, Delegate callBack) { _method = method; ...
by Himanshu Manjarawala
How to report progress and intermediate results from an asynchronous process to client code.
by Assil
A light article about a new feature in C# 5 and .NET 4.5
by Amir Dashti
A simple but powerful class to simplify executing T-SQL commands asynchronously
by arpanmukherjee1
RelayCommand.CanExecute in MVVM with attributes not WPF Requery
by ahmet_uzun
Audio pitch shifter application using the CSCore library
by mneu79
Generating automatic audit information with Castle ActiveRecord.
by Mathi Mani
Authenticate WebAPIs with Basic and Windows authentication
by PEtter Ekrann
How to do authentication through Azure with OAuth2. Clearing up some not so well documented thing in Azure
by Dennis Baberich
How to get a claimbased cookie authentication between custom frontend and self hosted SignalR server
by veen_rp
This message will self destruct in 5 seconds...
by Bikash Prakash Dash
How to create an auto suggestion control like Gmail/Hotmail/Facebook to add items in list.
by Sreenivas Chinni
This is an article / tip that I am trying to giving an idea of creating a general auto complete helper for asp.net MVC 5 developers
by deepaktripathi
Using auto complete textbox in jQuery Tabs content via AJAX in an Microsoft MVC project.
by rohitsies
This article describes an advanced technique and configuration to automatically transform and run your all or selected T4 templates when a project is build.
by Vitaly Tomilov
Simplest and quickest way to automatically bind array of image bytes to asp:Image object.
by member60
Autocomplete behaviour in a strongly typed view of ASP.NET MVC3
by Peace ON
Introduction...
by Eduardo Yost
Creating a Web User Control containing an AutoCompleteExtender for data through WCF (JSON) allowing to store the entity selected through EntityFramework. Entity object serialization from the server to the client and the client to the server.
by Srinivas Kalabarigi
A reference for auto-complete in ASP.NET
by saurabhsharmacs
Migration to AutoMapper 4.2.1
by Callum Linington (UK)
How to automatically add your AutoMapper profiles
by DannyVarod
Fast, stable and powerful creation of NuGet packages
by Imre S Lengyel
Use ILSpy to perform a more comprehensive check on Emitted assembiles
by Srinivas Kalabarigi
How to do automatic page refresh in ASP.NET
by Anand Gunasekaran
Scanner automatically scans multiple pages using BackgroundWorker Thread
by Pavel Torgashov
Simple and fast skew correction of scan docs in C#
by LucasB86
Translate your RESX files by using your own translation storage
by Emiliano El Mariachi
Here is a small library to help you have an automatic undo/redo feature without explicit dependency on Undo/Redo system.
by #realJSOP
A half-hearted approach to automatically versioning your projects
by Chip VonBurg
Automatically display your application version in the UI
by Deepak_Sharma_
This article will show how to create an auto-suggest TextBox that will suggest data from a SQL Server database column.
by Chandramouleswaran
Quick hack for spell check with AvalonEdit.
by Ordiales
If a Zip file has his origin in Linux or Mac. ZipArchive class can fail trying to return Entries Collection
by ambatisreedhar
Export to Excel,default formatting of excel,excel number format,excel date format,excel currency format
by 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)
by BillWoodruff
Suggestions for adding controls in code
by Jason Curl
Using System.IO.Stream default implementation of BeginRead() and BeginWrite() may result in unexpected deadlocks.
by Igor Pashchuk, MBA
This is an alternative for "C# Pivot Table"
by Mukesh Pr@sad
This tip describes how to build an application in Azure Cloud with ASP.NET MVC and WCF.
by IInjac
Azure Mobile Services Managed Backend–fortumo Mobile Payment Integration
by ankit57100
Azure Notificationhub - Sending Push notification to mobile devices
by Paulo Zemek
Using a BackgroundLoader instead of Lazy to make your application more responsive.
by Clifford Nelson
You can implement BackgroundWorker using Lambdas without any sort of helper class very easily.
by FantasticFiasco
A tool helping you to backup all your TeamCity projects and their settings.
by Hernán Hegykozi
This tip will show how to perform a backup and restore database from an application in VB.NET 2010.
by CorvetteGuru
Backup Stored Procedures in SQL Server.
by Saddoud Anis
Allow your applications the ability to backup and restore your PostgreSQL databases.
by sreeyush sudhakaran
VB.NET code for Base64 Encoding and Decoding of Image files
by Jdarmanovich
Basic MVVM pattern for binding items to a listbox in WPF
by Amit M patel
How to code for Delegate In this artical explains basic understanding for delegate and how to create nad use delegate. This code for .net framework for C# This artical is usefull...
by Alaa Ben Fatma
Small tool to write, run batch codes
by Bohdan Stupak
Batching is a nice technique that allows you to handle big amounts of data gracefully. Directory.EnumerateFiles is the API that allows you to organize batch processing for the directory with a large number of files.
by Zhuyun Dai
Your build will fail if you print 'Error:' in your custom Build Events of Visual Studio.
by Duncan Edwards Jones
Thoughts for writing code for the next developer to use (or how to apply the golden principle to code)
by honey the codewitch
A B-tree, an AVL tree, and a Splay tree in C#
by Robby Tendean
Simple implementation guide for log4net in a VB.NET web application.
by Tim-bot
Simple calculation to determin a value at a percentage along a bell curve. Also with an offcenter curve intersection thing....
by Vinayaka Krishna Shenoy
Introduction...
by Kundan Singh Chouhan
Simplest, best and most robust architecture.
by arturomonriv
This short article just shows the evolution of my implementation of the Factory pattern in C#.
by tmenier
An introduction to Flurl, an open-source .NET library for fluently building URLs
by yash soman
The tip is about using Elvis operator which is introduced in C# 6.0 for Null Reference Checks. It gives an example of how to use it.
by Greg Osborne
You don't always get what you expect with floating point math.
by CoperNick
How suprising can be conversion of decimals to bytes in C#
by Bhushan Mulmule
This is terribly unorganized document with mix of MVC, Entity Framework, LINQ, HTML 5 and JQuery how tos...
by Bim Garcia
Implementation of ISO8583 in .NET
by hirosht
Step by step method of thresholding a image using the EmguCV API in C#
by wesamq
This article explains how you can identify any compatability issues for a legacy code written in VB, or any other language that produces TLB (Type Library) files for its interfaces.
by honey the codewitch
BinaryReader and BinaryWriter can be used to parse or write binary files more easily and in a portable manner
by saurav ray
Article determines how to bind a crystal report with a virtual database
by Arkadeep De
Bind an image slider without database in ASP.NET
by Vertical AIT
Automatically bind MVC HTML RenderPartial and Partial view pages to your model's child objects without having to use HTMLFieldPrefix.
by Clifford Nelson
This article presents a way to display a message in a single control with several sources in a priority order
by manchanx
Tidy, generic solution to bind Enums (with or without a DescriptionAttribute) to a ComboBox or other Controls
by Amit_Mittal
An easy way to bind XAML with properties defined in code behind
by Clifford Nelson
Fairly straight forward way of binding in a HierarchicalDataTemplate or DataTemplate to the parent ViewModel when using the TreeView control.
by Houssem_Dellai
Using Bing Maps in Windows Phone 7
by prachi_pandey
Map fields from multiple schemas to fields of a single output schema
by Enrico Zerilli
Custom Pipeline that backs up incoming message to folders retrieve from external DB
by Scott Ward
Using extension methods to make working with JavaScript in .NET Blazor easier to work with
by Arkadeep De
Bluetooth Desktop Locker with Android Application
by RumataEstorish
Simple code for applying and disabling blur effect on any UIElement
by RobLazarus
This books is a tour de force and a must-have for any ASP.NET MVC developer as it will save you hours of time and frustration researching solutions to the various questions you may encounter when using MVC 4.
by Francisco T. Chavez
Bool to content converter
by Oleksandr Kulchytskyi
This tip explains how to increase performance in serialization by using MessagePack
by Yaseer Mumtaz
This tip will explain step by step Bootstrap basic development for beginners. Attached is small application having three pages using Bootstrap CSS, Components and JS.
by Rapuru Amarendra
This tip presents an example of menu in responsive using bootstrap.
by Shashi_Singh
How to use option's in bootstrap modal plugin.
by Rapuru Amarendra
This tip presents an example of popups in responsive using bootstrap
by Muhammad Hassan Tariq
Bootstrap 3.0 Sticky Alerts using Angular JS service
by Rapuru Amarendra
This tip presents an example of datatable in responsive using bootstrap and dataTable.js
by Rapuru Amarendra
This tip presents an example of working with tabs in bootstrap
by BobJanova
How to wrap a value type so it can be used in positions where a reference type is required
by supercat9
Mutable structures and classes behave differently when it comes to Generics. Although such differences cause some people to deride mutable structs as evil, they simply offer different semantics from class types. Such semantics are for many purposes superior to those of class types, but some code...
by Sebastiaan Meijerink
Breeze pitfall. Understanding entityQuery function changing.
by _Noctis_
This will allow you to integrate your linqpad code easily to Visual Studio
by Thrivikram Hathwar
How to broadcast data using .NET TPL dataflow
by Matthias Böhnke
Bug Fixes for Reading Barcodes from an Image - III
by Shivprasad koirala
I had a very vague idea, but I wanted to be sure about the exact differences between them.
by Fitim Skenderi
Build where clause dynamically in Linq
by Harsh Deep Gupta
No need to build and publish packages manually, automate it using GitHub Action
by Seth Juarez
How to build a simple contact application with XAF
by Abhilash Raja
Building adaptive layout in a windows 10 app with relative panel and adaptive triggers
by Jitendra Ballia
Building data access layer using enterprise library
by dsuryd
Simple, lightweight, yet powerful way to build real-time React + C# .NET web apps with dotNetify-React.
by thomasardal
Learn about the built-in rate-limiting middleware in ASP.NET Core.
by Aaginor
Add a Cancel-Button to the BusyIndicator (WPF Toolkit)
by _Noctis_
Quick tip for forms/windows/views where save/insert/cancel buttons are used
by Kashif_Imran
A user control that provides fancy buttons for panning purposes in Silverlight
by OriginalGriff
StringBuilder is a very useful and memory efficient way to concatenate strings, but there is no obvious similar class for byte arrays. This class adds that, and provides a flexible binary data storage medium at the same time.
by OKarpov
How to use ASM in C#.NET and most fast memory copy method
by Yuriy Magurdumov
Light yet functional CSV Parser with custom delimiters and qualifiers, yield returns records.
by deepi2014
This tip is to showcase how to write “Native C Library” so that it can be used for Cross Platform with .NET interoperability with Native C Libraries.
by Emiliarge
Both MS Access formats (mdb and new - accdb), MSSQL 2008 R2, MSSQL CE, SQLite, MySQL
by Emiliarge
Read and write data to Access databases without limitations caused by the use of the SQL.
by Emiliarge
Using FindWindow() and WindowFromPoint() to identify window, and SetWindowText(), MoveWindow(), SetForegroundWindow(), EnableWindow() to interact with it
by Brady Kelly
C# 7 has the ability to declare a variable right at the point where it is passed as an out argument
by blitzkrieged
An alternative ProgressBar for C# with extra functionality
by MarcusCole6833
I recently posted an article on how to place the data in an XML into an SQL table with a bulk Insert; this is an alternative way to do it by breaking up the XML before placing it into the Table.
by Nemo1966
How to use named pipes with Async
by Itai Basel
This article shows how to automatically initialize/reset automatic properties' default values.
by Richard Deeming
For .NET 4.0:using System;using System.Collections.Generic;using System.ComponentModel;using System.Reflection;using System.Linq.Expressions;static class AutomaticPropertyExtensions{ private static class Cache where T : class { public static readonly...
by Sascha Lefèvre
C# doesn't allow for binary literals (e.g. int bits = 0b00010101). With the helper class presented here, you can do something like that, as close as possible.
by charles922
Program that continuously monitors the NXT via Bluetooth
by Ahmed Amer Jaf
Downloading files from the Internet with one line without Freezing Form
by Rakesh Vemula
A Windows application which processes your code and shows how much time it takes to execute your code.
by 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.
by Jochen Scharr
C# CountryInfo class, LanguageInfo class and CurrencyInfo class, derived from CultureInfo respectively RegionInfo for a more intuitive and compile-safe handling of countries, languages and currencies
by dibley1973
A simple C# extension method to convert List into a delimited text string. Ideal for creating CSV files!
by D. Christian Ohle
New Rational class to solve epsilon and robustness problems especially for graphics algorithms.
by steven-_-song
Easier GetHash function in System.Security.Cryptography.
by dietmar paul schoder
Read rows and cells from an xlsx-file: quick, dirty, effective.
by Rajasakthimaridasan
C# Inheritance Interview Point of View
by Bjørn
How to automatically initialize a class for an inherited class instance
by Andreas Gieriet
This is an alternative for "How to use the IEnumerable/IEnumerator interfaces"
by Fabrice Lacharme
Yet another Knob Control in C#
by Clifford Nelson
This tip provides examples of how to use the different arguments of the Linq GroupBy extension method.
by Beercolhol
This is a bug fix to "C# MP3 Compressor".
by Maddog Mike B
A message server using named pipes and the Async CTP library (async and await keywords)
by One Man Crew
A NotificationCenterManager object (or simply, notification center) provides a mechanism for broadcasting information within a program.
by caed
C# - Read Text File, Match a Word in First Line, Move File if Word Matches
by puja11191
This is an extension of Photo Viewer on MSDN
by Gunnar S
Implementation of the Poisson Cumulative Distribution function for large Lambdas
by Amol B Lande
C# Print Reports/Document on server/local using shared/local printers
by Khairy Mohammed
How to run multi commands on Cmd on One process and once and Sync .
by Ozesh Thapa
Choose your datasource and generate classes
by Darkencrow
A multi-drawer style collapsable UI container
by Amir Dashti
A simple but powerful class to simplify packet based networking and client/server programming asynchronously
by Sympletech
A simple utility to help convert strings into other types
by Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
by marcus obrien
When trying to move into C# from C++, a little explanation of how functions can be overridden, and some of the pitfalls you may encounter.
by metastruct
When WebClient, HttpRequest, and all else fail, BITSadmin solves your download woes
by Peter Sun (247)
Master-detail view navigation using manageable data-driven and code-behind techniques
by Yannick Turbang
HTML WPF editor WYSIWYG (what you see is what you get).
by Sanjaykumar Patel
Speed up your computer by deleting temporary data
by deepi2014
An attempt to taking up an existing published article “C#.NET Interoperability with Native C Libraries on Cross Platform” towards the next level.
by John-ph
Resize an image and save in JPEG format using C#.
by John-ph
A simple C# program to implement a "Random Number Guessing Game"
by Emiliarge
2 ways to read and write data to *.xls and *.xls files and display it on DataGridView.
by Emiliarge
Comparison of 4 browser engines and controls + some tips for using them (in attached projects and in tip text). Short and clear.
by Emiliarge
How to get and parse website content.
by InActive
How to use the .NET DateTime class in C++ to generate a basic calendar via a console program
by Jon McKee
How to do it and why it works
by Shao Voon Wong
C++11 std::div() Benchmark
by Michele Ziparo
An effective way to implement a caching system in Silverlight (MVVM) RIA
by Michele Ziparo
An effective way to implement a caching system in Silverlight (MVVM) RIA
by Sem.Shekhovtsov
Caching the entire asp.net 3.5 web forms page using modules.
by Jani Giannoudis
Calculation of business hours (including holidays) using the Time Period Library for .NET
by Prabu ram
C# code to find the business time between two dates and to get the next business day by adding specific duration in minutes
by Mahmoud Fathy Afify
Calculate difference between two dates in day, week, month, and year parts.
by Jani Giannoudis
Get available time periods, restricted by a maximum usage count.
by PFalkowski
The way of calculating amount of memory occupied by some object in C#.NET
by perspolis
Calculating all permutation in C# without using recursion
by perspolis
Calculating permutation in a non-recursive way
by Qwertie
A fast and simple algorithm.
by Houssem Dellai
Developing a Windows Phone app step by step
by coder255
JSRPC.Net creates a JavaScript object with functions to call your WebAPI.
by AspDotNetDev
This demonstrates how you can call a C# method in a Windows Forms application from JavaScript that is hosted in a webpage inside a WebBrowser control on your form.
by Arjun Singh Faguda
How to call cross domain Webserver(asmx) service from jquery and bind the Json result with Jqgrid
by hajivalie
Call Form with string name
by Vishal_Kumar
Call server side code using ASP.NET AJAX and jQuery AJAX
by UberGeoff
An all-in-one callback gridview
by Chaitanya Kolla
Adding the WS-Security Header to a request using the WCF bindings
by Wael Al Wirr
Calling webservice at runtime
by SibeeshKV
Calling an ASMX webservice from other server using jquery and PHP
by Praveen Chandran
This tip describes how to call a webservice using JavaScript and also calling that webservice in a regular interval of time without doing a postback in the page.
by Ankur .K. Vishwakarma
Calling server-side code from client-side using JavaScript and TextBox's onblur event
by jayant jaiswal
Captcha code
by maftahur
Capturing web screen in different formats without any browser(PhantomJS)
by Kaveh Yazdi Nezhad
A simple solution to capture entire HTML code of a web page which is displaying on Internet Explorer
by konamiman.MSX, Erich Ledesma
Problem detected while testing a parallel consumer had a very dark explanation and a very simple solution.
by Kashif_Imran
A simple Caret for WPF User Controls
by Christiaan van Bergen
How to perform XPath queries on all lower case elements
by Thomas Daniels
In this tip, I tell you how to cast an IEnumerable to an IEnumerable(T)
by hground
I have several applications that open a SaveFileDialog, but it always comes up in "List" mode and I had not found a way of configuring the dialog to display in "Details" mode. This is a kludgy work-around, but it seems to work OK. After Declaring the dialog in your code and just prior to calling...
by Madhav Hatwalne
Caution when you are disabling a checkbox in Edit View
by CoderPanda
This tip is a continuation of my series on CCDA XML Generation. It talks about how to quickly get up and running on generating CCDA documents.
by Sitang Ruan
Central jQuery Version Control
by _Matt_Wilkinson_
How to centralise a Form when using multiple screens
by Andrej Kamikovski
How to copy files to central place set in configuration or setup directly with visual studio build task
by honey the codewitch
A small library for providing baseline Context-Free Grammar computations
by StM0n
A small class to simplify creating an array with the help of a fluent interface... sort of.
by Mohammad Elsheimy
Configuring OpenSSL minimum version and legacy renogetiation
by Ank_ush
How to change the background color for an MDI parent form in Visual C#This article demonstrates how to programmatically change the background color for a multiple-document interface (MDI) parent form by using Visual C#.When you use a Windows Form as an MDI parent form, the Application...
by Philipp_Engelmann
A small tool I made to easily change the background image of the login screen.
by Yumashin Alex
This tip describes how to change DataGridView behavior concerning row resizing
by Kees van Spelde
How to change resolution before starting an application
by Matthew Givens
How to change databases at run-time in a user-friendly manner.
by alrosan
How to change input language
by Gordon Kushner
If you try to enumerate through a Dictionary's key collection and attempt to change the values as in the code below, Dictionary _items = new Dictionary();...int i = 0;//Attempt to set the values for this Dictionary item.foreach (string key in...
by Purushotham Agaraharam
Dynamic changing of version number using SolutionInfo.cs through out the application.
by djdynamix
A little workaround to enable a VB.NET application to read and alter the WPC settings for any user.
by honey the codewitch
Enumerate store and retrieve characters as sets of ranges using this efficient struct
by Trilok Arora
Introduction to Charts in .NET 4
by Mohssine EL HARFI
CheatCodeLite to trigger events when a cheat code is caught using keyboard
by TarunSingla
Solution to check for balanced parentheses in a string where parentheses are defined as (, [ or { and their respective "closing" parentheses.
by Fabrizio Stellato
This code provides your application a - check for updates - feature
by Manish K. Agarwal
Check for Windows 7 Protected Folders
by Ravimal Bandara
An implementation of ray-casting algorithm to check if a given point is inside or outside the polygon.
by SergVoloshyn
Main program for testing modem or GSM phones by AT commands, use only standard classes and libraries.
by Ordiales
Create default interface implementation or whatever you want with runtime checking not implemented members
by a_pess
Image File Format
by Fenil Desai
Check which .NET Framework version is installed from command line
by Tamer G. Ahmed
Check/Uncheck all checkboxes in a CheckBoxList (one control).
by Agrawal Ashok
Checkboxes working like radio buttons.
by Mishra Sourabh
This tip explains how to create a checkboxlist in MVC.
by Amit Sanandiya From Morbi
Display Selected Column Dynamically Using checkBoxList in Wpf With C#
by Gandhi Ashish
Checking Internet Is Connected Or Not From .NET
by J a a n s
For C# guys....using System ;using System.Runtime ;using System.Runtime.InteropServices ;public class Internet{ [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState( out int Description, int ReservedValue ) ; public static bool...
by Anshul R
Dim value As Boolean = My.Computer.Network.IsAvailable can be used in a situation where the only network a system will be connected to is the Internet.Dim value As Boolean = My.Computer.Network.Ping(hostNameOrAddress ,timeout) hostNameOrAddress can be any valid website -...
by Froghut
Download source and example project - 64.37 KB IntroductionSome time ago I had to use CherryPy in one of our companys projects. To quote the website, 'CherryPy is a pythonic, object-oriented HTTP framework.' - but the feature I found the most usefull was that you can expose methods...
by Cinchoo
Simple and easy to associate file types to an application
by Cinchoo
Consuming and storing complex user defined object as configuration member values
by Cinchoo
This article show how to consume Windows registry information using Cinchoo Configuration Manager.
by Cinchoo
How to compare two CSV files for Add, Deleted and Changed records using Cinchoo ETL
by Cinchoo
Tips to convert complex nested JSON file to CSV format file
by Cinchoo
Tips to converting CSV to JSON with nested objects and arrays
by Cinchoo
Tip to convert JSON to XML with namespaces using Cinchoo ETL
by Cinchoo
Use Cinchoo ETL to deserialize selective XML nodes from large XML file
by Cinchoo
Tip to deserialize JSON to polymorphic classes without type information
by Cinchoo
Tip to merge different CSV files into one CSV file using Cinchoo ETL
by Cinchoo
Tip to merging JSON array values to single CSV column
by Cinchoo
Quick tutorial about parsing large JSON file as stream
by Cinchoo
Quick tutorial on converting CSV file to JSON file using Cinchoo ETL
by Cinchoo
Quick tutorial about converting JSON to CSV file using Cinchoo ETL
by Cinchoo
Quick tutorial about converting JSON to XML file using Cinchoo ETL
by Cinchoo
Quick tutorial about converting JSON to YAML file using Cinchoo ETL
by Cinchoo
Easy way to sort large CSV files using Cinchoo ETL
by Cinchoo
Tip to split large JSON file based on deeply nested array property using Cinchoo ETL
by Himashu Arora
by jelo pasiolan
This class is useful for HTTP web request and gets the response from the server. If the response is JSON or XML, this class also contains a method to parse or deserialize the response.
by Oleg_100
Synchronize access to multiple objects by name (string)
by rodrigo diniz
A small class that transforms the contens of an OFX file into a DataSet.
by Sonnich Jensen
Classic/custom build for assembly version for .NET 5 and 6.
by Narendra Singh Rathore
How to clear all textbox text on one click
by Johnny J.
How to work around a ClickOnce limitation
by adityasahver
In this tip, we will learn how to enable the Certificates in the Azure Web Sites
by sumit_kapadia
Create and Bind gridview at client side with Jquery Template and ajax in asp.net
by markmnl
Method to clone an EntityObject without serilization or detaching it
by Fun@learn
Lightweight approach to close view from viewmodel command.
by Dinand.dotnet
Use Git with cloudforge, and switch from SVN to Git
by Raju_B
Code behind JavaScript
by MarkWardell
Use this method for setting path on a map given [current position, heading, and distance]
by Mirko Rezzin
Explain how to implement code generation and inheritance in a WCF service
by Moustafa Farhat
small example to show how to used Regular Expressions for code highlight
by Simon Dufour
Check you code out, you'll have problem if you start editing from INSIDE. You change your SelectionStart without deselecting anything.. this mean that selection changes instead of only having your cursor moving.foreach(Match m in mc){ int startIndex = m.Index; ...
by Tomer Weinberg
A piece of code you can copy paste to transform TimeSpan into user readable UI text
by Gerardo Recinto
A Tracer API, simply. :)
by honey the codewitch
A helper class that dramatically reduces the amount of code you need to write for the CodeDOM
by Nils Paluch
This tip demonstrates how to use the buildin SQLite stack of Entity Framework 7 on desktop and mobile applications.
by scott_liu
The codes may be helpful to those who are experiencing the migration of lots of applications
by Hemant__Sharma
I always find this thing while doing code reviews and that is a performance issue. The above point I haven’t found anywhere as a performance issue, so I thought to share it.Scenario: There is a function in which one need to extract 10-20 values from an object for example a column value from...
by Tecfield
Collapsible ListView
by rwmao
A simple example of how to use Collapsible Panel in ASP.NET, especially in VS2008
by Yuriy Nelipovich
The LogJoin tool helps to collect any unstructured data from text files and join it to a simple table representation for easy analysis.
by Pavel Kabir
This tip is about how to get collect the values for all instance fields of a given type.
by Matus Kovacik
This component allows to overlay grid with colored blocks spanning across multiple columns.
by NYCChris
I love Code Project, this site has helped me quite a number of times. So whenever I have something I feel is worthwhile I will post it.The other day I needed an algorithm to tint one color with another by a percentage amount. So here it is if anyone needs it. private static Color Tint(Color
by Wu Yehao
A ColorSelector control used in GIS Applications, with a menu button for displaying
by 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.
by OriginalGriff
There is a problem with accessing Excel files via OleDb which contain more than 255 columns: they are truncated and need to be fetched using ranges. But what do you do with DataTables after that?
by Mario Z
Combining multiple .NET assemblies by customizing MSBuild's project file.
by jelo pasiolan
This article, along with real code, combining SqlConnection and SqlCommand in one Class
by B.O.B.
A simple extension to add an item that has a data source bound to combobox.items
by dietmar paul schoder
RibbonComboBox in MVVM/WPF: the easiest way
by Physlcu$
A custom ComboBox that supports live filtering of items by Substring-Search or any other Lamda-Expression
by Bill Lock
This program reads comic book files (cbr, cbz) these files are basically compressed jpeg picture files.
by gggustafson
This tip presents a general method for capturing GUI events.
by Abhishek Sur
Hi Guys,It is common behavior of ASP.NET that if a control is set to Visible = "false", the response stream doesn't contain the definition of it. Therefore, if you want to make the control visible during runtime from Javascript always put display = none in styles attribute.Say you have a...
by Omar Al Zabir
Caching frequently used objects, that are expensive to fetch from the source, makes application perform faster under high load. It helps scale an application under concurrent requests. But some hard to notice mistakes can lead the application to suffer under high load, let alone making it perform be
by Chris Jorna
Communication Library Files - LMS5lib | Connection and structure
by Chris Jorna
Communication Library Files - NetTools | IsSameSubnet
by Chris Jorna
Populating NICs, online (IP and MAC) and offline IPs in a network environment
by Clifford Nelson
A media player application specifically designed to support listening to language learning tracks
by Arthur Peka
A tutorial to compare .NET objects
by Michael Sydney Balloni
The world is JSON-in, JSON-out, but perhaps we can do better in some situations with our old friend CSV
by Abhishek Sur
It is to be noted, .NET has lately introducedResponse.RedirectParmanent() after a long await. The main motive of this is tohave permanent response redirection to the Search Engines.Response.RedirectParmanent() is an extension function introduced in .NET 4.0.Themain motive of it is to indicate
by Abu Zafor Khairuzzaman
Comparison Chart for Two Different Time Frames in SSRS
by Lumír Kojecký
This tip shows how to compile and use C# code during runtime and its impact on speed.
by rvjagadheesh
A complete assembly reference tool for .NET which will display details on all methods, properties, enum for all classes in all namespaces
by Peter T. Ringering
A complete replacement to Microsoft's Date/Time Picker control.
by GerVenson
Why do we need to register all services with service.AddService?
by Karl Tarbet
Complex math library for C# and VB.NET
by Dominique Gilleman
How to handle (load/save) only a part of an aggregate domain model with composition
by Poonamchand Soni
How to compress viewstate information of your aspx page
by KK Kod
How to compress JavaScript and CSS files in a web application to reduce page loading time, using GZIP.
by Teraten
Write a program to make your computer talk for you.
by Jose Xavier
VB Function to Comput Easter Date
by David A. Gray
Calculating the day on which a reporting period that ends on a specific day of the week is not as easy as it looks.
by Chamila Nishantha
Adding report pages to create one report
by Simon Bridge
Save wear and tear on your keyboard: INotifyPropertyChanged with the fewest key-strokes.
by Eugene Sadovoi
Using ObservableCollection in a multi-threaded environment.
by Kamran Bilgrami
Effective way of debugging by taking advantage of some not well-so-known features of Visual Studio
by _Groker
Code for summing by group in a RDLC report
by boblogan
GCSSecurity (34.9 KB)IntroductionHands off crypto - useful for protecting app.config values and performing install time machine fingerprinting...BackgroundRecently I was asked to provide better security / encryption on several data items normally contained within a CONFIG file.......
by Mehdi Gholam
Simple config manager for your applications
by Praveen P R
Create and Validate Custom Polly Resilience Strategies
by Kishan Zunjare
Configure email providers like SMTP/GMail using Dependency Injection.
by Dileep Ashok
Configure One To One and One To Many Relationship in MVC and EntityFrameWork Code first, code migration approach
by imsauravroy
Easy way to understand configuring unity for an ASP.NET MVC application
by Shivarajbk
This tip explains how to write RESTFUL WCF service for Android applications.
by Patrick Wanjau
This article is important and essential for beginners and intermediate ASP.NET developers. It will help them set their development environment
by anoopk01
This tip shows how to connect with MongoDB from a .NET application.
by Tyronne Thomas
Connecting to a C# socket with a timeout.
by Sufyan S Jabr
All items needed to successfully connect to IBM MQ
by Hassantga
How to connect to a MySQL database using VB.NET.
by Bikash Karmokar
Connecting Windows Form Application With ADO.NET in C#
by Pruthviraj Mohite
This tip gives you details about how to connect Windows Phone to Microsoft Band.
by Dustin Halstead
Hark back to the days of text based adventure games, and simple PC, speaker sound.
by JohnLeitch
ConsolePlus aims to build upon the existing System.Console class by offering a styling language for coloring console output. This enables developers to create applications with rich console output, while minimizing boilerplate code.
by Christian Koberg
Console output, general applicable to all executables on a Windows system
by Sandeep Singh Shekhawat
This tip is about the Constructor Dependency Injection Pattern Implementation in C#.
by Mishra Sourabh
Today in this article, we are going to learn how to consume webapi using angularjs.
by RalphZero
This is a simple example of an Ajax-Enabled WCF Service (hosted in IIS) that can be consumed by both client-side and server-side code.
by Pandey Vinay
This is a direction to use Google Maps API Rest Services instead of using it from JavaScript.
by Rocky R. Fernandes
Accessing Json Data across different domain using JsonP to get arround Security warning
by Surya Kiran Bonugu
Client Web Application which consumes OAUTH enabled restful WCF service using JavaScript
by Abhishek Shrotriya
This tip gives the very basic/simple implementation to interact with SAP PI webservice for authorized recipients.
by A Mahesh
wcf durable services
by Thinira
Continuous Integration and Delivery with VSTS (Visual Studio Team Services)
by Faisal(mfrony)
Understand why we need Contravariance in C#.
by PP RhuM
Sharing code of a control used to links items of two listviews
by #realJSOP
Control resizing is a bit more mysterious than it might appear at first glance.
by T.Umarani
Control Visual Studio startup time
by Mawy
To control the speed of scroll viewer component in Windows phone
by Abdul Quader Mamun
Convenient way to remove items from list when items exist in second list.
by Anshul R
The Perfect Translation/Conversion of Code
by TomQuinn
A simple function used to determine if a file path refers to a network drive and if it does convert it to use the UNC path
by Prerak Patel
Here is an API way using WNetGetUniversalNameImports System.Runtime.InteropServices _ Private Shared Function GetUName(ByVal Path As String, ByVal outName As Integer, ByVal bObj As...
by Sibeesh Passion
Convert CellSet to HTML Table, and from HTML to Json, Array
by Sibeesh KV
Convert CellSet to HTML table
by EddeKreij
Convert csv file to a data table
by Emiliano Musso
A quick method to convert a CSV file in XML
by pramod.hegde
Converts DataTable to XML, XSD, or HTML using XSLT and C#
by El_Codero
Convert doc/docx documents to pdf with Foxit Reader Printer. Works without use of Word Interop/SharePoint.
by Alen Toma
Convert From Type to Type using System reflection
by Kannan Ar
A step by step guide to integrate AngleSharp HTML parser into MariGold.OpenXHTML
by Kannan Ar
Implement an online HTML to Word converter using CKEditor and MariGold.OpenXHTML
by Mehrdad, Asghari
Below function get ISBN10 parameter and return ISBN13 :public string GetISBN13(string ISBN) { string isbn10 = "978" + ISBN.Substring(0, 9); int isbn10_1 = Convert.ToInt32(isbn10.Substring(0, 1)); int isbn10_2 =...
by Kuv Patel
Convert JSON to C# classes in Visual Studio
by jonx
Very good stuff. Learned me a lot about how to access to the physical structure of the query.There is also a CopyToDataTable : http://msdn.microsoft.com/en-us/library/bb386921.aspx[^]And for the record here is a C# version:protected DataTable EntityToDatatable(IQueryable Result,...
by Sibeesh Passion
Convert Microsoft ADOMD Cell Set to JSON
by Sankar Subramanian
How to convert number to word, number to eqviualent word, change number to word , how to convert number to text
by Saurav J
Convert table from outlook email body into datatable or list using .NET C# EWS Managed API and HtmlAgilitypack
by FatzBomb
How to convert a written number to a numerical value anywhere in a string.
by Mikhail-T
Tutorial on how to create simple extension that converts view model propety name to string
by stopthespying
{adcd-1234-zyz.....} CLSID becomes c:\Windows\System32\SomeProgram.exe
by Shibasis Sengupta
This tip describes how to convert your personal laptop into a webserver available on world wide web
by Stefan Huy
Converting a datatable to CSV, XML, and HTML by using Extensions.
by OriginalGriff
Converting a value to an SI unit string.
by nishantsinhaindia
Easy steps for converting Word /Excel /PowerPoint /Visio file to PDF.
by Qwertie
A trick you can do with enhanced C#
by veen_rp
Geographic coordinates from decimal degree to degrees, minutes & seconds. And vice versa.
by Shru37
Modified code from another article to consider field repetitions while converting HL7 message to XML
by Lee Louviere
Convert joystick movement into mouse position from a fixed center.
by keyur soni
The System.Web.Extensions assembly .It is an assembly released with orcas.It delivers-asp.net new controls-built in ajax support ie for latest version of vs we have built in ajax support.etcorcas has support to linq and its assemblies so if we convert a project from any version to...
by srinivaspitla66
How to convert text to voice in .NET using C#
by Bohdan Stupak
A simple snippet of how you can convert video in .NET Core
by Rajesh Kuramdasu
This article describes about converting an XML string to a HTML table.
by RemcoReitsma
Load an XML document and convert it to a dynamic object
by Pandey Vinay
Cookieless session in ASP.NET
by bobishkindaguy
Thread safe control displays status with icon according to type of message. Tutorial on sending messages around your application using delegates.
by Ashkan.hosseini
Stored procedure that generates insert stored procedure for tables
by veen_rp
Use and benchmark of coordinate transformation using the C++ proj4 library in VB.NET and C#
by Midi_Mick
A set of helper functions to cope with DBNull results from database queries
by Steffen Ploetz
How to use GL's pixel buffer object (PBO) to copy one texture to another
by KumarM.NET
How to copy data from all tables in Access 2003.
by Rami Shareef
In order to copy an object to a new one and avoiding assigning every member to it equivalent value, you can use this to loop dynamically over every property inside the object and return the value in order to assign it to the new instance public static Employee CopyEmployee(Employee...
by Thava Rajan
Copy and insert data at any postion in your datagridview
by Bryan Lyman
A method for duplicating a web page (including all scripts and styles) to run as if it originated from your own server, then modify server-side and client-side functionality afterwards.
by Leo Gan
A Target for MSBuild, which I use with BizTalk Deployment Framework (BTDF) for the BizTalk Server application deployment.
by #realJSOP
Sharing files between multiple web apps in a single solution.
by Grasshopper.iics
Can't we have something as below?int n=(s.Split(new char[]{'\n'})).Length;where n is the number of lines?
by akemper
I've compared your favorite with seven alternatives:static long LinesCount(string s) { long count = 0; int position = 0; while ((position = s.IndexOf('\n', position)) != -1) { count++; position++; // Skip this occurance! } ...
by George Swan
How about using the extension method: return s.Count(c => (c == '\n'));
by Jon Bellamy
Again, going with other people's comments about memory, how about using a Streamreader? (I haven't tested the timings (or code) but from memory..This should be fast (and memory efficient)...at least in my experience.StreamReader sr = new StreamReader("Put file here");Int32 cnt =...
by Greg Baryza
I had to do something like this in XSLT. If the string is not too long (for some definition of "too long"), you can replace all newlines with "" and then take the difference in the two string lengths.
by Roman Shero
Hello! Great tip!What do you think about this extension method:public static class StringExtension{ public unsafe static long LineCount(this string s) { long lineCount = 1; fixed (char* pchar = s) { char* p = pchar; for (; *p...
by Andreas Gieriet
Great analysis!I found out that Regex can be accelerated by a factor of about two.Instead of new Regex(@"\n", RegexOptions.Compiled|RegexOptions.Multiline);you can speed up by using:new Regex(@"^.*?$", RegexOptions.Compiled|RegexOptions.Multiline);But admittedly, nothing beats...
by OriginalGriff
It seems like an obvious requirement, but the .NET framework will not count occurrences of a character in a string. It's easy to do, but which way is the quickest?
by Luc Pattyn
This is an alternative to "Counting Lines in a String".
by Raje_
This is a simple demo of how to display the number of unique products from a DataGridView.
by fgoldenstein
Application running in 32 and 64 bits
by Tyronne Thomas
CPU usage with C#.
by Robert Vandenberg Huang
HTTP multipart streaming can do many things.
by Nosey Parker
Crafting on hex string
by Zain Nisar
Create "Sign Up Page" using Toolbar and Navigation feature
by Uladzislau Baryshchyk
Application that can be used to work with subd and connecting Amazon RDS to the project
by Dr.Walt Fair, PE
How to create a blank Jet database
by FZelle
You can do this in a much easier way:object ADOXCat = Activator.CreateInstance(Type.GetTypeFromProgID("ADOX.Catalog"));ADOXCat.GetType().InvokeMember("Create", System.Reflection.BindingFlags.InvokeMethod, null, ADOXCat, new string[] { ConnectionString });
by snoopy001
And here is the long version, provided from Microsoft:http://support.microsoft.com/kb/317881/en-u[^]using System;using ADOX;namespace ConsoleApplication1{ class Class1 { [STAThread] static void Main(string[] args) { ...
by Diamonddrake
another way is to first create a empty db in access then read its bytes into an array and export them as a string. Then hardcode that string into a class that creates the the empty database by converting the hardcoded string back into a byte array and then writing it to disk as a mdb...
by ISanti
I like to use the old JET API to manipulate ACCESS Databases.In C# 4 all you need to create a blank JET database is add a reference to Microsoft.Office.Interop.Access.Dao library in your WINDOWS FORMS project, and two simple lines of code: var engine=new DBEngine(); var...
by ZamirF
This line:ADOX.CatalogClass cat = new ADOX.CatalogClass();may not work if you are using C# 4.0+You will needADOX.Catalog cat = new ADOX.Catalog();For a completed method checkout:http://zamirsblog.blogspot.com/2010/11/creating-access-database.html[^]
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
by Kirankumar Chauhan
Global Resorce File Creation in json Format using ASP.NET
by Thomas Daniels
A tip about how to create a local server in C#.
by Damon Du
This tip documents problems encountered in the process of learning WCF and Computer Network.
by Kumar Pankaj Verma
How to create thumbnail of a large size image in C#.
by Vipin_Arora
Create an Oracle Data Source Name programmatically.
by saurabh sri
Basic steps to create ASP.NET WebApi services.
by Denis Pashkov
How to create and consume JWT tokens in C#
by Ravi Rachchh
Create and deploy custom timer job definition programatically in SharePoint.
by Er. Mayank Kothari
Generate barcode image in web application
by Gold$Coin
This tip will help you to create a collection from a DataSet
by Member 4332221
Create count down timer using ASP.NET Timer Control and Ajax
by Paulo Zemek
Avoid generating strings as templates. Avoid the complicated FrameworkElementFactory. Create templates that use a delegate to create new instances, so you can use normal code to do the job.
by senthill
This article describes how to create deployment package for sharepoint 2013 project using using visual studio
by Alexandros Pappas
This tool reads the descriptions of the columns of the SQL server and creates a Word document using SoftArtisans' WordWriter.
by Siddharth Gajbhiye
In this tip, you will learn how to create dynamic Row with Custom MultiSelect Dropdowns in Angular 8.
by Noble KC
Floating/Sliding Menu or Panel in C#.NET
by Aadhar Joshi
Creating job in sql server which automates taking backup of all stored procedures and functions in physical drive.
by Lau Han Ching
How to create Microsoft Access database programmatically using VB.NET without Microsoft Office
by chetan virkar
Create a multi-language website in ASP.NET.
by khanqamarali
Get/set property by right clicking on .NET IDE.
by Emiliano Musso
How to create a UserControl to show QR Codes created with Google APIs
by Yaseer Mumtaz
This tip contains securing Web or App config sections in C# with code snippets.
by Nicolas Dorier
This is a short bat program to create a self signed key (with private key), if you call the bat "makecertif.bat", to create a key named ServerKey you need to type :makecertif.bat ServerKey, it will create ServerKey.pfx, a certificate with a private key you can use to secure a web site in...
by User 8388951
In this tip, we are going to create an activity that can send an e-mail message to a target user.
by Florin Pănescu
This library is for creating shortcut .lnk & .url
by Islam Refaei
How to create contained DB users to be used among your application
by Vipin_Arora
Create the SQL Data Source name Programmatically
by WuffProjects
This tip provides you with a solution to get the friendly name of any Type without namespaces.
by Saranya Mahesh
Upload PDF, save file name to database, save pdf to a folder, create a thumbnail image of pdf and save it to a folder, and also save the image to database
by Zain Nisar
How to create visual states and what is state group?
by Zdenek Jagrik
A template for Windows Form Application written and compiled without Visual Studio.
by piyush_singh
How to create your first MVC project in Umbraco
by Rogai Lorenzo
How to create a web panel for your application.
by Sunil_Pawar
Learn how quickly you can Create, Run, Debug and Deploy SQL CLR function using integrated features of Visual Studio 2013.
by how_fun
Create PDF from CRM 2013/2015 online/on-prem with Jscript / plugin. All in the solution file, no custom page or Silverlight.
by Dolinka Márk Gergely
Creating a Custom Migration Operation in Entity Framework
by Mattintosh
How to create a formatted column with nothing more than a knowledge of which columns you want and the format you want them in
by Abhijit Ghosh (Subho)
Creating a Issue in Jira using Rest API and Microsoft XML Core Services (MSXML)
by Sujith Karivelil
Creating a link in the left pane of the file Explorer - like OneDrive or DropBox
by Mohit Johri
This tip will help you to display data using XamDataPresenter (or any DataGrid) which will have multi-header column.
by IpsitaMishra
In this tip, we will learn how to create a partial view and use that view in the parent view.
by vblover Programmer
Create a resource-only DLL
by OriginalGriff
A simple "scratch card" like control for Winforms, where the user can reveal the image by "scratching off" a cover
by honey the codewitch
This tip shows how to create a dynamic JavaScript-like "object" to be used in web pages and T4 templates.
by Diluka Wittahachchige
Creating SQL Server database project use in Visual Studio 2012 and maintain versions use in TFS
by Sumanyu Soniwal
An ASP.net based Tagging System.
by Melih Mucuk
Creating a WCF Service with JSON data for use on iOS
by Malak Zia Nasir
Cloud computing is the trend of nowadays; this article provides some basic steps to create and connect a Windows Azure SQL Database to a simple application.
by Hrushikesh Patel
Creating an AutoComplete with Images for profile with MVC and Jquery
by Abhijit Ghosh (Subho)
This is an alternative for "Creating a Issue in Jira using Rest API". This is an upgraded version as it contains a way of sending attachments with the issue. This version doesn't use MSXML as it is not recommended by Microsoft.
by B. Clay Shannon
The easiest way to create and use code snippets in Visual Studio
by D Sarthi Maheshwari
A suggested solution to create serializable Partition based ConcurrentDictionary (reducing chances of OOM errors, reduced memory consumption and adding capability to hold bigger KVP set in Dictionary).
by Murali Gowda
WinJS custom control to plot/draw a simple donut like chart
by Clifford Nelson
A way to create a custom derived control with the XAML file attached like a UserControl
by Omnia Hussain
A walk-through for creating a custom WPF button that contains both icon and text
by SaadZulfiqar
For this, we don't need to worry about the path. Folder will automatically be created in the root folder of zip file.
by Vaibhav M Nalwad
How to create dynamic instances using custom attributes with constructor values
by Carlos Conceição
This article how you can use TextToCalcExpression to generate Linq Expressions in runtime
by Member 10298658
The ConcurrentDictionary type resides in System.Collections.Concurrent, introduced in .NET 4.0. It makes adding, removing and updating values in a lookup table on multiple threads easier.
by AesopTurtle
Mimic a loading animation as seen in Windows 8 using pure XAML.
by Antonio Ripa
Need some mock data to test your app? MockData is a free library
by Arif Habib Shadan - www.i-arif.com
Accessing resources and creating and updating the resources in the Azure resource groups
by Brady Kelly
On problems that arise tying to add a null valued SqlParameter using the SqlParameterCollection.AddWithValue method.
by Israel Gebreselassie
This tip/trick shows you how to edit the web.config file dynamically .
by D Sarthi Maheshwari
A suggested solution to create Partition based Dictionary (reducing chances of OOM errors and adding capability to hold bigger KVP set in Dictionary).
by HUONG Minh-Luong
How to use PresentationMapper to generate presentation objects
by Shayne P Boyer
Creating RazorPage apps using the CLI
by Jnana
This article describes steps to create rest api with OAuth and how to use those api using OAuth
by Md Ashaduzzaman
Here we’ll learn how to create a page template of our own that is reusable.
by Chrene91
A tip to fellow programmers developing in the .NET environment
by CRMcoaching
In this article I will demonstrate an advanced topic that can improve bussiness processes that start in one CRM and continue in another CRM.
by Kashif_Imran
This tip shows how to crop images at the center with desired width and height in .NET (ASP.NET, Windows Forms, WPF, etc.)
by assamheart
Crop a photo and signature from an scanned image
by David_Cui
A brief introduction to CrossCutterN tool remade for AOP programming in .NET technologies
by Indresh_Prajapati
This tip will help beginners to implement CRUD operations in ASP.NET MVC 4 with scripting language as KnockOut and Database as MS SQL 2008R2.
by Indresh_Prajapati
This tip will help beginners to implement CRUD operations in ASP.NET MVC 5 using WebAPI 2 with scripting language as AngularJS and Database as MS SQL 2008R2.
by Muddassir Mohammed
Create a CRUD screen using ASP.NET MVC, dapper and jTable in 10 minutes
by CafedeJamaica
Cryptography Class for Certificates
by honey the codewitch
Easily reuse source from entire projects at the source level instead of the binary level
by honey the codewitch
Easily create single source file drop-ins from multiple C# source files
by Ilija Poznić
Adding class selector to WPF
by Jochen Haar
Class to manage the content of Comma Separated Value Files or to deal with Structured Tables in memory
by ideafixxxer
Simple implementation of a parser of comma-separated values (CSV) files in C#
by Nirav Prabtani
CTE Query for optimizing complexity of query in sql server
by emarti
This tip describes how to display the value as currency text, formatted in accordance with the current culture.
by Kinyanjui Kamau
Being able to add or update data field by field through Winforms using EF5, .NET 4.5
by Mahesh Pratap Singh
This tip describes how to better organize config settings and use them.
by Member 11470680
I made this "borderless" application (WinForms), and added an semitransperent border (might laggy). The design is exactly the Windows 10 colors and button sizes.
by Shailendra Singh Deol
Customize default style of calendar in WPF
by Fayaz7Wonders
Custom control to check v-id or email ID in a domain.
by Zain Nisar
How to create Custom Control in Blend 2015
by Gaurav Raosaheb Raut
Custom CSV formatter in ASP.NET Web API
by Mang Irpan
This control is a datagridview that can contain control as its node, and it can contain unlimited node control
by Shailendra Singh Deol
Customize datepicker style in WPF
by Rapuru Amarendra
This tip explains how to create custom helpers in ASP.NET MVC4 step by step clearly. It will be very helpful for those who want to learn ASP.NET MVC as beginners.
by Mack Ait-Aoudia
Add an HTML helper and make it available to your entire application
by Ajeet 75
Demo to show how to use HubName and HubMethodName attributes in SignalR
by Surendra Adhikari SA
Implimenting a message box that closes automatically using thread.
by Avatar2400
This is a simple class that allows you to have message box with checkbox and other small features.
by Anushan Tennakoon
In this article I am going to explain an approach of implementing custom pagination for an ASP.NET MVC application.
by Aliaa Ezzat
Custom paging control for repeaters
by coolnavjot31
Custom paging with only 10 pages shown in pager.
by HardikPatel.SE
Paging using AJAX
by HardikPatel.SE
Paging and Sorting with AJAX
by Sean Chung
In this tip, I'll show you how I make a replacement for tooltip
by Chamila Nishantha
This tip describes how to create your own printing functionality rather than using built in print functionality on Microsoft Report Viewer.
by tumbledDown2earth
Using dynamic or ExpandoObject is a breeze to dynamic data WebAPIs, but when serializing to XML, it can cause a brain damage sometimes :)
by Renat Khabibulin
Custom ShowDialog() method for WPF
by Acharya Raja Sekhar
This tool helps a lot while capturing more number of snapshots. Example: Developers can use this tool to capture the UTR and save all snaps at the end to a Word document or save as individual images.
by Chamila Nishantha
Article describes how to apply a custom sorting for Cross-Tab
by Sumit Chawla
Custom String FormatWith using Reflection
by Matt T Heffron
This is an alternative for "Custom String FormatWith using Reflection"
by Kishor Deshpande
Methods which facilitate the conversion from string to value type
by Daniel Lo Nigro
Custom strongly typed HtmlHelpers in ASP.NET MVC
by Opata Chibueze
This tip demonstrates how to wrap text in WPF - similar to using &shy or <wbr. in html
by David Fine
Using Attached DependencyProperty to prevent closing of Popup embedded in ToggleButton
by Alexander Batishchev
Implementing WCF behavior extension to run code on service launch
by RickZeeland
Creating a custom ListBox by overriding the PrepareContainerForItemOverride() method of the ListBox with a custom routine.
by Mohsen Afshin
A custom FolderBrowserDialog with Non Special Root Folder
by Md. Shariful Islam (Adil)
T4 Template customization for ASP.NET MVC
by Hicham El Horri
Customized ToolTip [for WinForms]
by VaibhavTiparadi
Quick and easy way of customizing the WIX Installer
by Akmishra0719
Daily reminder using SQL Agent and SignalR
by Gihan Liyanage
Simple Dapper.NET Example with MVC
by Deepak_Sharma_
In this article I will explain how to display data from a SQL Server database table in a WPF DataGrid control
by Zain Nisar
How to create Data Binding?
by Raja.Krishnasamy
Data Driven Testing in MSTest by using Excel as data source and Named Region as table name instead of sheet name
by Monotosh Roy Mon
XML Serialization & Deserialization for converting our object to XML and XML to Object
by chinmayi samal
Methodology of passing data in MVC architecture
by Henka.Programmer
WPF Control allows to create complex data table with cell merging, columns merging, complex columns and rows merging
by Yugal Pandya
Database driven N-Level Dynamic Menu Control using C#.NET and SQL Server with stylesheet CSS
by Muhammad Ahmed Azam
"Database Driven Dynamic Menu Control"
by Christopher Crain
Create a dynamic class driven by your database.
by Alejandro Garcia
Databinding enumerators to DataBound controls.
by Arunima Panda
Tips to consume Web API services to bind data in AngularJS.
by Weberto.com
Simple Checkbox State changed in time for right click
by Weberto.com
Event to delete rows by selected cells.
by mohammad amiri
this tip discuss about showing datagridview data to crystal report using c#
by MarioRainer
Here is a simple way to sort the datagridview by Multi-Columns
by Jaume González
How to convert any datareader into generic list.
by Brad Joss
Export a System.Data.DataTable/DataSet into a T-SQL script that when run creates a #TEMP table of the same definition filled with data.
by Alexandros Pappas
This project measures performance of the DataTable.Merge method.
by Kamran Bilgrami
How to remove datatips if you want to view code at the same time
by Steven.Pinto2000
Day of the week
by Er. Puneet Goel
When you are dealing with Date&Time input from user, it's always complicated to handle the Date&Time format. You are not sure about how you will handle the user input format. So, here is the solution.
by Bohdan Stupak
Explanation of how DateTime.TryParse behaves with ISO-8601 format
by VijayRana
CRUD operation in ASP.NET/C# with SQL Server for beginners
by VijayRana
Retrieve value from database and bind to gridview
by Manikandan Sekar
Here we can view the events of a day by moving the mouse over the date.
by crackruckles
Days Left Timer VBS self deleting
by Amol M Vaidya
A simple Data Connection Library to avoid rewriting code when the DB changes
by Sina Shiri Hamedani
This is a simple C# class for connect and using SQL Server easily (SELECT, INSERT, UPDATE, DELETE)
by Adriaan Booysen
This is the DbEnum that is used with the EntityFrameworkCore Seeding article
by Patrice Dargenton
Database Administrators need to compare database structures. DBReport shows only (and all) significant information that makes sense for daily administrator work.
by Tawani Anyangwe
A dead simple HTML Sanitizer (and HTML Parser) you can use to clean user HTML input.
by Alejandro Gaio
A simple solution to a serialization problem with IBindingList-implementer classes.
by Duncan Edwards Jones
Fix the 500 error if no Content-Type is specified
by Komal Mangal
This tip will help you in fixing the PathTooLongException and getting the full path of files giving this exception.
by Muhammad Hassan Tariq
Glimpse Extension for server side debugging and diagnostic information of ASP.NET applications
by Sebastian Solnica
This post is the second and final one dedicated to debugging .NET Windows services.
by sadanandms
Debugging client JavaScript in Visual Studio 2005/.NET?
by cjb110
How to identify the cause of the DataSet Constraint Exception
by Shashangka Shekhar
In this post, we are going to explore how to debug client side script in Visual Studio 2017 using Chrome and how to disable it.
by omeecode
Explaining Decorator Design pattern and its implementation
by Hassan Alrehamy
JSON Deserialization in depth concept and Dictionary mapping. Special Thanks to Dr. Coral Walker
by Juan Francisco Morales Larios
Use and examples for the keyword Default in generics
by Ivan Yakimov
Recently I faced a problem of storing sorting information for later use. Sorting is easy if you already have a collection to sort. Just use LINQ extension methods. But what if you don't have the collection yet? What if you'll get the collection later, but you need to store sorting rules now?
by Firnas
A way to define display names for class members in BE class that can be used as table headers.
by Himanshu Manjarawala
In this article we are discussing how to define Iterator classes for our own classes.
by Lorenzo A.
Using the Windows API to define systemwide hotkeys
by Purbasha Ghosh
Leverage lazy loading with Unity DI framework
by pramod.hegde
Delete all directories with a specific name inside a root directory
by Michael Gr
Deleting folder programmatically is extremely dangerous. It can erase your system.
by Saket Pawar
How to delete headers/certain strings in rows from your Excel file
by sourabhdev14
The GridView control in ASP.NET is used to represent information from a database in tabular format.
by Valer BOCAN
World's first Forth compiler for the .NET platform
by Shashank S Chandel
Demonstration application using MVC SignalR and Entity framework - Part I
by Anuj Chauhan from India
A simple UI based solution to demonstrate how to implement Cyclic Linked List.
by Patrik Melander
A simple and straight forward example of how to configure Azure for access to Microsoft Graph. Sample code in C# included.
by Member 10409352
This tip presents an overview of the dependency injection pattern with mulit-tier application scenario and source code example.
by Alon Lek
Running tasks in parallel while taking into account the dependencies between them
by Prakash Tripathi
This tip talks about the queries developers get when using design patterns in software development.
by Umesh Khandelwal
Design the WCF service without implementing interface
by Pusparag Subudhi
When working with Rest clients, there are numerous steps involved in passing Headers, Parameters, Deserialization of response, etc. These codes get repeated several times if a proper design is not created around the Rest client.
by Venkat Chaitanya Kanumukula
Dynamic utility for viewing and browsing schema info and data runtime
by Hassan Mokdad
This is a just a small tip to show a simple way of designing the user interface of Windows Forms for Desktops applications.
by Ivan0001
You have too many icons on your desktop? Well, this will solve your problem. With this program, you can organize your desktop, create categories and add programs/documents to category.
by TnTinMn
UpdateDefaultButton - Allows detecting change in ActiveControl
by a_pess
Check image is upside down in VisualBasic.NET
by WaqaarRasool
Heartbeat Implementation in WCF Service in C#
by Shivachalappa Gotur
Detecting USB Modem Device using C#.NET
by #realJSOP
Extension method to determine fiscal date
by hasan bozkurt
Determining all bootable partitions using PInvoke
by Muhammad Muddasar Yamin
This tip is about the development Leap Motion integrated Windows 8.1 metro apps using C#
by AfnanMof
Steps How to Develop Sharepoint Windows Forms
by Leri Buiglishvili
Little and programmer-friendly library for device recognition for mvc 4 web apps.
by Purbasha Ghosh
Initialize MVC controllers with multiple instance resolutions of same interface
by George Swan
This is an alternative for "Dictionary.BestMatch"
by PIEBALDconsult
Extension methods to select a Dictionary entry using StartsWith
by Kiran K Kadam
Difference between AppPool and AppDomain
by Snesh Prajapati
Difference between attr() and val() in jQuery
by ATjong
Different items in RadCombobox in each row of RadGrid with sqlDataSource
by Mugil Ragu
In this tip, you'll learn about different ways to pass data to partial view
by Sanjay H Modi
Sign data using private key from a certificate
by RickZeeland
Console app to scan a VS directory and create a simplified directory tree
by jarvisa
public void ControlStatus(Control control, bool isDisable){ foreach (Control c in control.Controls) if (c.HasControls()) ControlStatus(c, isDisable); else { WebControl wc = c as WebControl; if (wc != null) ...
by PSU Steve
You can just use "not IsDisable" versus the IF...ELSE block. Additionally, the recursive call to ControlStatus should be done all the time so that the parent control is enabled/disabled along with the children. // to enable\disable the control & its child controls public...
by a_pess
Alternative For VB.NET Windows Forms Private Sub ControlEnabled(ByVal ctrl As Control, ByVal isDisable As Boolean) Me.ControlEnabled(ctrl, isDisable, True) End Sub Private Sub ControlEnabled(ByVal ctrl As Control, ByVal isDisable As Boolean, ByVal allowRecurse As...
by Minh Danh Nguyen (ToughDev)
Depending on system preferences (in Control Panel/Sounds), the .NET WebBrowser control (just like Internet Explorer) may produce a click sound when changes are made programmatically to its DocumentText property, which is irritating to the user.There are two ways to avoid this:1. Use...
by emolina
Public Sub DisableSound() Dim keyValue As String keyValue = "%SystemRoot%\Media\" If Environment.OSVersion.Version.Major = 5 AndAlso Environment.OSVersion.Version.Minor > 0 Then keyValue += "Windows XP Start.wav" ElseIf Environment.OSVersion.Version.Major = 6 Then ...
by Member 8208766
To me the second method was problematic. After searching, I found an apparently equally good solution:webBrowser1.DocumentText = text;or in your case:webBrowser1.Document.Write("Hello, world!");from here:...
by pipiscrew
nah, try the light one ://at FormLOAD WB.Navigate("about:blank"); //at treeview event private void treeview_AfterSelect(object sender, TreeViewEventArgs e) { WB.Document.Body.InnerHtml = (dR["html"].ToString()); }
by Christopher John Paul
Prevent right click on the web page
by Lars Hove Christiansen
Disables the screensaver even on machines where it's not allowed due to domain policy.
by Srinivas Kalabarigi
Disabling the browser's back button.
by AnthonyMG
WPF ComboBoxItem disabling
by Roberto Carlos Beyra
Disk Space Alert for Server Backup with email-notification
by B. Clay Shannon
Using a WebBrowser control and a DataGridView control, open CSV files that contain address information, and display the selected address in a Google Map from the grid in the browser control
by jkirkerx
Basically a slideshow script, but more simple in design and easier to deploy.
by Sonali Agarwal
Here I am showing the local time in various timezones in the world
by Daniel Nguyen Vinh
The iTextSharp API is a powerful Open Source tool for creating PDF documents on the fly; it has the ability to generate multilingual PDF but it does not come with the default setting. In order to display Unicode characters such as Vietnamese, please follow our post
by Daniel Ben-Sefer
Album Example - 5.68 MBIntroductionI often have the need to show pictures with captions as seen above.My objective is to be able to do so dynamically, so that all I need to do is to create a folder on my PC whose name equals the title of the page ("Sample Pictures" in the image...
by Bohdan Stupak
How to perform distributed lock between multiple instances of a microservice with Redlock.Net
by Andrew Admire
Generates an NTLM character set, 1 to any max you set.
by Jacky Yiu
Dither - Floyd-Steinberg Dithering
by Amogh Natu
This tip shows the different results of dividing different type numbers with Zero
by Alexander Van Berg
Short case study for a do-it-yourself cryptography system.
by Rob Philpott
Saving time and memory reading repetitive data
by Jose A Pascoa
Part 1 - Using DMath from C#
by Tyronne Thomas
DNS resolving and parsing IP address in Metro Style applications (WinRT).