Click here to Skip to main content
15,892,298 members
Everything / Programming Languages / C# 3.0

C# 3.0

C#3.0

Great Reads

by Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.
by Daniel Vaughan
Calcium provides much of what one needs to rapidly build a multifaceted and sophisticated modular application. Includes a host of modules and services, and an infrastructure that is ready to use in your next application.
by Dark Daskin
Article describes how to build an assembly that exposes functions to unmanaged code without C++/CLI
by Sacha Barber
It would probably be like Cinch, an MVVM framework for WPF.

Latest Articles

by Shivprasad koirala
Design Pattern FAQ - Interview Questions (Quick Reference)
by Harsha T, Amarnath S, S Mahesh Reddy
A simple viewer of images stored in the DICOM 3.0 File Format (C#). The file should have raw pixel data, uncompressed. Window Level functionality is also provided.
by AlexeyYakovlev
This paper demonstrates a technique of building Sprache parsers using grammar inheritance.
by Randy Kroeger
This article provides an example on how you can change application configuration settings within an existing ClickOnce publish, update the manifest files, followed by using the Mage utility for updating the manifest using the existing cert file.

All Articles

Sort by Updated

C# 3.0 

10 Jul 2014 by #realJSOP
Extension methods can help you avoid sticky situations.
26 Dec 2010 by #realJSOP
Can't you just call Enum.GetNames(), and then bind to the collection returned by that method?
4 Jun 2014 by A. Najafzadeh
This tip shows how to change LINQ-to-SQL connection string at runtime via programming.
9 May 2013 by Abhay@Accenture
10 Sep 2009 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
20 Jun 2011 by adolfobarallobre
Here is code for an alternate:public class OfficeButton : Button{ public OfficeButton() : base() { } private Color mGradientGlowColorColor; // the Color field public Color GradientGlowColor // the Color property { get { return...
30 Apr 2014 by AdrianJ2K
An implementation of a Simple Cache using PostSharp, ConcurrentDictionary with a Lazy value and dynamics
30 May 2012 by Ahsan Murshed
This article gives ideas to developers to increase development time productivity using the free Visual Studio 2010 extensions.
20 Apr 2013 by Aliaa Ezzat
14 Oct 2010 by ambatisreedhar
Export to Excel,default formatting of excel,excel number format,excel date format,excel currency format
7 Jul 2013 by Amit_Mittal
An easy way to bind XAML with properties defined in code behind
31 Jan 2013 by Anand Gunasekaran
Listview Paging Feature to split the records of the listview in sevaral pages.
25 Feb 2012 by Andreas Gieriet
To not having spoiled the client code with #if DEBUG, you might use the following:[STAThread]static void Main(){ Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); try { Debugging.DebugSetupConsole(); ...
5 Jun 2012 by Andreas Gieriet
This is an alternative for "Sorting Strings based on the position of the block letter"
31 Aug 2012 by Andrew Rissing
A function to generate an endless collection of scrolling text for your use/amusement.
7 Jun 2012 by AndrewSmith
Creating a custom base job class for quartz scheduler development
21 Sep 2010 by anshudutta
10 Jun 2010 by Anshul R
The Perfect Translation/Conversion of Code
27 May 2011 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 -...
27 May 2011 by Anshul R
For Control Panel:Process.Start("control.exe");For My Computer:Process.Start("explorer.exe", Environment.GetFolderPath(Environment.SpecialFolder.MyComputer));For the rest, we can use GUID just like the original.For Recycle...
24 Feb 2014 by Anupam Singh_
This tip is all about understanding the controller factory and exploring it...
14 Oct 2012 by AnuragTripathi
Convertor for Unicode to Krutidev and vice-versa.
20 Nov 2012 by Arno1973
A fix for ImageButtons problem in IE10 when project is not 4.5
25 Mar 2011 by Ashwani Hundwani
13 Feb 2014 by Ashwin. Shetty
Lazy loading object in DI using Castle Windsor & System.Lazy
23 Mar 2010 by AspDotNetDev
This version works regardless of parameters:public void AnyMethod(int parameter){ MethodInvoker wrapper = new MethodInvoker(delegate() { // Do your thing here! }); if (this.InvokeRequired) this.Invoke(wrapper); else wrapper();}Note also...
14 May 2014 by atlaste
How to fix hiding controls in the Visual Studio user control designer
16 Jul 2013 by Atulkumar P Patel
Anti Patterns are wrong practice followed by Developers. They are opposite to Design Patterns.
30 Apr 2013 by Aydin Homay
In the tip, I want to illustrate how to host windows form in windows user control
13 Sep 2012 by azweepay
Create a GridViewColumnCollection with resizable and non-resizable columns
4 Dec 2013 by Balachandar Jeganathan
Custom attached property in WPF
17 Jun 2013 by bbirajdar
Difference between var and dynamic in C#
19 Oct 2010 by Behzad Talebpour
Alternatively, you can erase your closing bracket (}) and VS will format the whole block (between opening & closing bracket). This works only if there is no syntax error in that block.
14 Feb 2014 by BenScharbach
How-To Convert a String Collection to a Multi-Enum item using TryParse
20 Nov 2011 by Bernhard Hiller
That's far too obscure.All you need to do is store a reference to the TabPage instance which was removed from the TabPages collection of the TabControl. You may use the form where the TabControl is placed for that purpose.You could also create your own TabControl which has an extra property...
7 Nov 2012 by Bhasker Kandpal
Exploring the behaviour and capabilities of a property grid control.
29 Jun 2012 by Bhavanarayana.Vempati
Simple and best example of how to work with Event Handlers.
3 Sep 2013 by blitzkrieged
An alternative ProgressBar for C# with extra functionality
1 Aug 2014 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.
8 Sep 2008 by cesar_boucas
A custom derivative of ServiceHostFactory to control how WCF service hosts are created.
27 May 2011 by charles henington
public enum ProcessType { ControlPanel, MyComputer, NetworkPlaces, RecycleBin } private static string MyComputer = "::{20d04fe0-3aea-1069-a2d8-08002b30309d}"; private static string RecycleBin =...
2 Dec 2014 by charles922
Simple Polynomial Addition and Subtraction using Lambda Expressions for sorting Lists
20 Jan 2015 by charles922
3D programming with OpenGl and C# to create an interactive puzzle
13 Jul 2012 by Christopher John Paul
6 Sep 2012 by Christopher John Paul
Ajax Asynchronous Postback Method
20 Jul 2011 by cmschick
Thanks for sharing. I have a similar utility with additional capabilities that some of you might find useful.using Microsoft.VisualBasic;using System;using System.Collections;using System.Collections.Generic;using System.Data;using System.Diagnostics;using...
5 Nov 2010 by codefabricator
// Even more simplifiedclass Program{ [DllImport("user32", ExactSpelling = true)] static extern bool EnumWindows(WNDENUMPROC lpEnumFunc, IntPtr lParam); [UnmanagedFunctionPointer(CallingConvention.Winapi)] delegate bool WNDENUMPROC(IntPtr hwnd, IntPtr lParam); ...
17 Apr 2012 by ColinBashBash
Script to reconnect Windows mapped drives (Win7).
12 Jun 2012 by coolnavjot31
In this Artcile i will show you how can we change the value of one column on change of other column in gridview.
10 Dec 2016 by Cory Charlton
A thread-safe implementation of the ObservableCollection class
26 Sep 2011 by CS1401
Using this method, we can clear the text stored in a textbox easily.
19 Dec 2010 by cs981khx
Code snippet that gets you the latest version of .NET and also checks if a specific version exists
22 May 2012 by Daniel Lo Nigro
Custom strongly typed HtmlHelpers in ASP.NET MVC
6 Mar 2015 by Darkencrow
A multi-drawer style collapsable UI container
22 May 2010 by DaveAuld
Here is a better evaluation of performance in .Net of the If / Switch operations;http://www.blackwasp.co.uk/SpeedTestIfElseSwitch.aspx[^]
13 Jan 2011 by DaveyM69
How to prevent a CD/DVD drive from being opened.
22 May 2010 by DaveyM69
Enables access to the original argument in all events
22 May 2010 by DaveyM69
Now your application can update it's saved data regrdless of the account it is running under.
22 Mar 2011 by DaveyM69
Starting a thread using a generic argument
21 Aug 2010 by DaveyM69
How to access a control from a different thread + good alternatives by other members!
7 Feb 2012 by DaveyM69
How to have a real console window as well as your forms
3 Sep 2010 by DaveyM69
A few quick examples of how to correctly create events.
6 Sep 2010 by DaveyM69
How to convert a generic List of derived types to a generic list of base types.
12 Jul 2013 by Deenuji
Select multiple checkboxes in a GridView in an online shopping website.
22 Aug 2015 by Deepak Kr Choudhary
This article is about the session use in ASP.NET.
2 Jun 2012 by deepaktripathi
Using auto complete textbox in jQuery Tabs content via AJAX in an Microsoft MVC project.
12 Dec 2011 by Denno.Secqtinstien
Code that measures a time interval as you would measure the execution time of a task
1 Mar 2013 by dgDavidGreene
How to find and link config and other files from other projects within your solution.
4 Nov 2014 by Diwakar M A
WPF based preloader animation sample. Let's make WPF applications more interactive during long process.
9 Apr 2013 by dotted_decimal
Extension method that defines a format specifier q or Q and finds the Quarter for a DateTime value
28 Sep 2012 by Dr. Vinayak Ashok Bharadi
Homomorphic filtering is a generalized technique for signal and image processing, involving a nonlinear mapping to a different domain in which linear filter techniques are applied, followed by mapping back to the original domain.
12 May 2011 by DrABELL
Hello Steven,As FYI: recently I have published on CodeProject a short article (tip) on rather efficient implementation of GCD/LCM based on Euclid algorithm. They use iteration instead of recursion, because re-cursive algorithms in general and in this particular case are relatively...
13 Oct 2014 by Ed Gadziemski
How to set a null binary value (zero-length binary value) in the registry from your C# program.
20 May 2014 by Ed Nutting
How to fix LocalDB / SQL Server: "Cannot open database "XYZ" requested by the login. The login failed. Login failed for user ABC"
12 Jul 2012 by ednrg
This is a .NET port of a VBScript utility
11 Feb 2015 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.
18 Aug 2014 by Emiliarge
Read and write data to Access databases without limitations caused by the use of the SQL.
30 Aug 2014 by Emiliarge
2 ways to read and write data to *.xls and *.xls files and display it on DataGridView.
31 May 2014 by Evgeny Pereguda
This is simple implementation of fast forward 1D DCT-II on MSIL which is generated at runtime.
17 Dec 2012 by fadi_sayyed
WPF Compare two brushes IsEquals
25 Jan 2012 by fastal
VB version:Friend Declare Function AllocConsole Lib "kernel32.dll" () As BooleanFriend Declare Function FreeConsole Lib "kernel32.dll" () As BooleanSub main() Dim MainForm As New frmMain If Command = "" Then MsgBox1 = AddressOf MyMsgBox1 ' messagebox delegate sub call...
4 Jun 2010 by fjparisIII
Cannot use Storyboard because ScrollView.VerticalOffset property is read-only. Must use old fashioned DispatchTimer.
25 Dec 2011 by Gandhi Ashish
Checking Internet Is Connected Or Not From .NET
18 Sep 2014 by Gautham Prabhu K
Creating and using Service Locator pattern
27 Feb 2012 by Greg Sipes
An alternate solution.
27 Jan 2014 by Handy Torres
POCO to CAML simplifies creating of CAML queries by using expression trees.
18 Feb 2011 by harbor
Manual Scroll Panel in a Panel or UserControl with AutoScroll=false
28 Apr 2015 by Hassan Alrehamy
JSON Deserialization in depth concept and Dictionary mapping. Special Thanks to Dr. Coral Walker
9 May 2013 by Hernán Hegykozi
Versioning file inclusion JavaScript by date of last modification
2 Aug 2012 by Himanshu Thawait
WCF With No config file needed – all setting in code only, No IIS – Self hosted, consume by channel factory