Click here to Skip to main content
14,846,832 members

Articles by #realJSOP (Articles: 77, Tip/Tricks: 85)

Articles: 77, Tip/Tricks: 85

RSS Feed

Average article rating: 4.50

All Topics
Posted: 14 Sep 2011   Updated: 14 Sep 2011   Views: 53,304   Rating: 4.98/5    Votes: 52   Popularity: 8.54
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 0
Please Sign up or sign in to vote.
Welcome to our continuing series of Code Project interviews in which we talk to developers about their backgrounds, projects, interests and pet peeves. In this installment we track down Code Project member John Simmons.
Database Development
SQL Server
Posted: 30 Sep 2017   Updated: 30 Sep 2017   Views: 6,291   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 36
Please Sign up or sign in to vote.
Create and run jobs kinda like SQL Server Enterprise - Architecture and design decisions
Posted: 30 Sep 2017   Updated: 30 Sep 2017   Views: 6,131   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 18
Please Sign up or sign in to vote.
Create and run jobs kinda like SQL Server Enterprise - The CSV and Excel Importer Code
Posted: 30 Sep 2017   Updated: 30 Sep 2017   Views: 5,421   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 20
Please Sign up or sign in to vote.
Create and run jobs kinda like SQL Server Enterprise - Job Scheduling Code
Posted: 30 Sep 2017   Updated: 30 Sep 2017   Views: 4,761   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 12
Please Sign up or sign in to vote.
Create and run jobs kinda like SQL Server Enterprise - How Packages Are Run
Posted: 30 Sep 2017   Updated: 30 Sep 2017   Views: 5,312   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 44
Please Sign up or sign in to vote.
Create and run jobs kinda like SQL Server Enterprise - Interesting Coding
Posted: 30 Sep 2017   Updated: 27 Feb 2018   Views: 17,345   Rating: 5.00/5    Votes: 11   Popularity: 5.21
Licence: The Code Project Open License (CPOL)      Bookmarked: 32   Downloaded: 469
Please Sign up or sign in to vote.
Create and run jobs kinda like SQL Server Enterprise - Users Guide
Posted: 4 Mar 2021   Updated: 9 Mar 2021   Views: 8,860   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 177
Please Sign up or sign in to vote.
This library is intended for use in a multi-environment system, but it certainly be used under less stringent environmental confines, even down to a single desktop machine taht needs to connect to a single database server.
Desktop Programming
MFC
Posted: 26 Nov 2000   Updated: 16 Apr 2001   Views: 99,162   Rating: 3.07/5    Votes: 18   Popularity: 3.85
Licence: The Code Project Open License (CPOL)      Bookmarked: 27   Downloaded: 2,053
Please Sign up or sign in to vote.
Technique for utilizing a CResizablePage in a CFormView-derived class
Posted: 28 Nov 2000   Updated: 6 Jun 2001   Views: 177,461   Rating: 3.50/5    Votes: 27   Popularity: 5.01
Licence: Not specified      Bookmarked: 45   Downloaded: 2,493
Please Sign up or sign in to vote.
Extension of Paolo Messina's CResizableDialog concept
Posted: 9 Aug 2005   Updated: 9 Aug 2005   Views: 73,600   Rating: 3.55/5    Votes: 26   Popularity: 5.02
Licence: Not specified      Bookmarked: 23   Downloaded: 1,058
Please Sign up or sign in to vote.
Enumerate all controls in a dialog box or form view.
Posted: 21 Jan 2001   Updated: 7 May 2001   Views: 100,472   Rating: 3.30/5    Votes: 22   Popularity: 4.43
Licence: The Code Project Open License (CPOL)      Bookmarked: 37   Downloaded: 1,977
Please Sign up or sign in to vote.
Track a mouse click, even in a scrolled view
Posted: 27 Jan 2007   Updated: 27 Jan 2007   Views: 64,996   Rating: 4.60/5    Votes: 23   Popularity: 5.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 44   Downloaded: 729
Please Sign up or sign in to vote.
Implement XML application profiles that are similar (but not too similar) to using INI files
Posted: 8 Dec 2002   Updated: 8 Dec 2002   Views: 208,297   Rating: 3.50/5    Votes: 45   Popularity: 5.79
Licence: Not specified      Bookmarked: 33   Downloaded: 0
Please Sign up or sign in to vote.
Some dialogbox code to give the Blonde a clue
Posted: 26 Jan 2007   Updated: 26 Jan 2007   Views: 101,538   Rating: 3.19/5    Votes: 64   Popularity: 5.76
Licence: The Code Project Open License (CPOL)      Bookmarked: 38   Downloaded: 1,336
Please Sign up or sign in to vote.
Add menu items to, and learn how to handle the system menu
Posted: 12 May 2005   Updated: 12 May 2005   Views: 129,904   Rating: 3.11/5    Votes: 39   Popularity: 4.95
Licence: Not specified      Bookmarked: 39   Downloaded: 0
Please Sign up or sign in to vote.
Build a menu and/or a toolbar dynamically without using resource files (well, almost).
Posted: 13 May 2005   Updated: 13 May 2005   Views: 68,020   Rating: 3.22/5    Votes: 25   Popularity: 4.50
Licence: The Code Project Open License (CPOL)      Bookmarked: 11   Downloaded: 972
Please Sign up or sign in to vote.
Create blinking cells for Chris Maunder's grid control.
Posted: 28 Jul 2006   Updated: 28 Jul 2006   Views: 51,053   Rating: 3.74/5    Votes: 31   Popularity: 5.58
Licence: The Code Project Open License (CPOL)      Bookmarked: 29   Downloaded: 517
Please Sign up or sign in to vote.
Copy a bitmap over a portion of another bitmap
Posted: 3 Aug 2006   Updated: 3 Aug 2006   Views: 29,831   Rating: 3.67/5    Votes: 10   Popularity: 3.67
Licence: Not specified      Bookmarked: 12   Downloaded: 144
Please Sign up or sign in to vote.
A passable workaround for the COleDateTime formatting behavior in MFC8.
Posted: 11 Dec 2001   Updated: 12 Dec 2001   Views: 199,232   Rating: 3.65/5    Votes: 17   Popularity: 4.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 20   Downloaded: 0
Please Sign up or sign in to vote.
A small function to either accept or create a UUID* and return a CString
Posted: 19 Jan 2001   Updated: 14 Mar 2002   Views: 185,672   Rating: 3.89/5    Votes: 24   Popularity: 5.37
Licence: Not specified      Bookmarked: 44   Downloaded: 1,307
Please Sign up or sign in to vote.
Parse strings with specified delimiter and specified quote character
Windows Forms
Posted: 14 Dec 2008   Updated: 24 Jun 2010   Views: 146,998   Rating: 4.85/5    Votes: 54   Popularity: 8.20
Licence: The Code Project Open License (CPOL)      Bookmarked: 174   Downloaded: 3,839
Please Sign up or sign in to vote.
Create a dynamically resizable wizard form
Posted: 11 Dec 2010   Updated: 13 Nov 2011   Views: 102,692   Rating: 4.95/5    Votes: 52   Popularity: 8.45
Licence: The Code Project Open License (CPOL)      Bookmarked: 71   Downloaded: 1,439
Please Sign up or sign in to vote.
New and improved! Keep an eye on your CodeProject articles and reputation without having to log onto CP.
Posted: 14 Aug 2011   Updated: 20 Aug 2011   Views: 36,802   Rating: 4.85/5    Votes: 23   Popularity: 6.61
Licence: The Code Project Open License (CPOL)      Bookmarked: 24   Downloaded: 1,352
Please Sign up or sign in to vote.
Keep more detailed track of your Codeproject reputation points.
Posted: 14 Aug 2011   Updated: 30 Aug 2011   Views: 49,140   Rating: 4.93/5    Votes: 35   Popularity: 7.61
Licence: The Code Project Open License (CPOL)      Bookmarked: 41   Downloaded: 861
Please Sign up or sign in to vote.
Keep more detailed track of your Codeproject reputation points.
Posted: 14 Aug 2011   Updated: 20 Sep 2012   Views: 38,311   Rating: 4.85/5    Votes: 20   Popularity: 6.30
Licence: The Code Project Open License (CPOL)      Bookmarked: 14   Downloaded: 486
Please Sign up or sign in to vote.
Keep more detailed track of your Codeproject reputation points.
Posted: 7 Apr 2008   Updated: 4 Nov 2012   Views: 129,986   Rating: 4.71/5    Votes: 27   Popularity: 6.50
Licence: The Code Project Open License (CPOL)      Bookmarked: 70   Downloaded: 3,729
Please Sign up or sign in to vote.
The classic word game using words and letter scores allowed in Scrabble
WPF
Posted: 25 Dec 2020   Updated: 21 Jan 2021   Views: 23,045   Rating: 4.94/5    Votes: 44   Popularity: 8.02
Licence: The Code Project Open License (CPOL)      Bookmarked: 48   Downloaded: 1,156
Please Sign up or sign in to vote.
Finally, a customizable MessageBox for WPF applications
Posted: 1 Mar 2021   Updated: 1 Mar 2021   Views: 2,410   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 64
Please Sign up or sign in to vote.
For those times when you need more control over when a modeless window is created/displayed
Posted: 21 Feb 2021   Updated: 21 Feb 2021   Views: 2,290   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 72
Please Sign up or sign in to vote.
Not about just writing code, but adapting someone else's code to your own needs
Posted: 23 Feb 2021   Updated: 23 Feb 2021   Views: 2,560   Rating: 4.75/5    Votes: 5   Popularity: 3.32
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 101
Please Sign up or sign in to vote.
Implement enumerator selection in your WPF apps
Posted: 18 Feb 2021   Updated: 18 Feb 2021   Views: 2,350   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 112
Please Sign up or sign in to vote.
A WPF ListView that automatically generates columns (that are also sortable) based on decorated entity properties
Posted: 9 Dec 2020   Updated: 2 Jan 2021   Views: 6,057   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: The Code Project Open License (CPOL)      Bookmarked: 11   Downloaded: 215
Please Sign up or sign in to vote.
A tool to generate model and viewmodel classes directly from your selected database
Posted: 20 Aug 2011   Updated: 30 Aug 2011   Views: 35,253   Rating: 4.85/5    Votes: 9   Popularity: 4.62
Licence: The Code Project Open License (CPOL)      Bookmarked: 14   Downloaded: 973
Please Sign up or sign in to vote.
Keep more detailed track of your Codeproject reputation points.
Posted: 14 Oct 2012   Updated: 4 Nov 2012   Views: 54,162   Rating: 4.97/5    Votes: 16   Popularity: 5.99
Licence: The Code Project Open License (CPOL)      Bookmarked: 39   Downloaded: 1,372
Please Sign up or sign in to vote.
My Anagrams game ported to WPF.
Posted: 13 Apr 2016   Updated: 11 Apr 2020   Views: 31,677   Rating: 4.77/5    Votes: 20   Popularity: 5.99
Licence: The Code Project Open License (CPOL)      Bookmarked: 28   Downloaded: 1,154
Please Sign up or sign in to vote.
Any technology suitably advanced will generally be viewed as "magic".
Posted: 16 Dec 2014   Updated: 16 Dec 2014   Views: 43,413   Rating: 4.77/5    Votes: 30   Popularity: 6.83
Licence: The Code Project Open License (CPOL)      Bookmarked: 21   Downloaded: 1
Please Sign up or sign in to vote.
Eliminate the tedium of generating model and viewmodel classes for your WPF projects, and save a butt-load of time in the process.
Posted: 22 Feb 2021   Updated: 22 Feb 2021   Views: 2,720   Rating: 4.20/5    Votes: 7   Popularity: 3.55
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Present enumerators in your WPF UI
General Programming
String
Posted: 12 Feb 2015   Updated: 27 Feb 2018   Views: 42,084   Rating: 4.96/5    Votes: 31   Popularity: 7.40
Licence: The Code Project Open License (CPOL)      Bookmarked: 44   Downloaded: 609
Please Sign up or sign in to vote.
Spell it out! No! Wait!
Mobile Apps
Posted: 22 Dec 2003   Updated: 22 Dec 2003   Views: 81,631   Rating: 3.51/5    Votes: 17   Popularity: 4.32
Licence: The Code Project Open License (CPOL)      Bookmarked: 24   Downloaded: 0
Please Sign up or sign in to vote.
Add a scrollbar to a property page when the SIP is displayed.
Posted: 9 Dec 2002   Updated: 9 Dec 2002   Views: 105,363   Rating: 3.18/5    Votes: 22   Popularity: 4.27
Licence: The Code Project Open License (CPOL)      Bookmarked: 14   Downloaded: 0
Please Sign up or sign in to vote.
One technique for performing a binary insertion sort on a std::list
Nvidia
Posted: 14 Apr 2008   Updated: 10 Jan 2011   Views: 318,000   Rating: 4.93/5    Votes: 72   Popularity: 8.94
Licence: The Code Project Open License (CPOL)      Bookmarked: 135   Downloaded: 0
Please Sign up or sign in to vote.
How to go about buildingyour own NAS device
Programming Languages
C#
Posted: 14 Feb 2010   Updated: 17 Dec 2010   Views: 283,500   Rating: 4.92/5    Votes: 107   Popularity: 9.94
Licence: The Code Project Open License (CPOL)      Bookmarked: 295   Downloaded: 14,465
Please Sign up or sign in to vote.
How to get all the events you want - whether you need them or not.
Posted: 14 Feb 2010   Updated: 17 Dec 2010   Views: 135,122   Rating: 4.91/5    Votes: 77   Popularity: 9.23
Licence: The Code Project Open License (CPOL)      Bookmarked: 161   Downloaded: 1
Please Sign up or sign in to vote.
Use the demo application (from Part 1) to observe events posted when creating files in the watched folder
Posted: 7 Apr 2018   Updated: 7 Apr 2018   Views: 18,678   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: The Code Project Open License (CPOL)      Bookmarked: 19   Downloaded: 690
Please Sign up or sign in to vote.
An example of evolving code to fit new demands
Posted: 13 Oct 2008   Updated: 11 Dec 2010   Views: 115,544   Rating: 4.72/5    Votes: 49   Popularity: 7.70
Licence: The Code Project Open License (CPOL)      Bookmarked: 95   Downloaded: 733
Please Sign up or sign in to vote.
Scrape the My Articles page here on CodeProject to keep an eye on your articles.
Posted: 2 Oct 2008   Updated: 2 Oct 2008   Views: 165,714   Rating: 4.44/5    Votes: 61   Popularity: 7.76
Licence: The Code Project Open License (CPOL)      Bookmarked: 140   Downloaded: 5,092
Please Sign up or sign in to vote.
Discusses windows authentication and application-specific authentication for WinForm applications
Posted: 4 Jan 2009   Updated: 4 Jan 2009   Views: 78,676   Rating: 4.91/5    Votes: 28   Popularity: 7.03
Licence: The Code Project Open License (CPOL)      Bookmarked: 51   Downloaded: 1,911
Please Sign up or sign in to vote.
A utility that you can use to "exercise" your inkjet printer without wasting a lot of ink or paper
Posted: 26 May 2010   Updated: 27 May 2010   Views: 36,941   Rating: 4.95/5    Votes: 16   Popularity: 5.82
Licence: The Code Project Open License (CPOL)      Bookmarked: 19   Downloaded: 0
Please Sign up or sign in to vote.
With some earlier design forethought, I was able to inject some significant code optimization into a current project.
Posted: 9 Apr 2020   Updated: 9 Apr 2020   Views: 2,721   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
When you're using other people's code, especially code that might get updated from time to time, it's important to remember that you can probably extend it and make it in your own image, without necessarily changing the original code, and by using the power of object-oriented programming.
Posted: 5 Apr 2020   Updated: 10 Apr 2020   Views: 10,536   Rating: 4.88/5    Votes: 9   Popularity: 4.66
Licence: The Code Project Open License (CPOL)      Bookmarked: 18   Downloaded: 399
Please Sign up or sign in to vote.
A rewrite of a previous article with more liquid nitrogen and bacon
Posted: 28 Nov 2006   Updated: 8 May 2007   Views: 141,275   Rating: 4.44/5    Votes: 95   Popularity: 8.74
Licence: Not specified      Bookmarked: 97   Downloaded: 0
Please Sign up or sign in to vote.
A method for programatically determining the appropriate foreground color based on the specified background color
Posted: 28 Sep 2008   Updated: 28 Sep 2008   Views: 66,730   Rating: 4.45/5    Votes: 28   Popularity: 6.23
Licence: The Code Project Open License (CPOL)      Bookmarked: 43   Downloaded: 1,306
Please Sign up or sign in to vote.
Put text on a bitmap, make your winform app go full-screen, and say hello to some simple LINQ code.
Posted: 17 May 2008   Updated: 17 May 2008   Views: 51,407   Rating: 4.38/5    Votes: 19   Popularity: 5.38
Licence: The Code Project Open License (CPOL)      Bookmarked: 29   Downloaded: 225
Please Sign up or sign in to vote.
One method for loading common and object-specific data from your app.config file.
Posted: 17 Dec 2008   Updated: 17 Dec 2008   Views: 59,307   Rating: 5.00/5    Votes: 11   Popularity: 4.77
Licence: The Code Project Open License (CPOL)      Bookmarked: 46   Downloaded: 589
Please Sign up or sign in to vote.
A not-so-dotNet way to allow multiple programs to share a single settings file
Posted: 1 Oct 2017   Updated: 1 Oct 2017   Views: 5,100   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
This is an alternative for "Custom exceptions without constructor tedium"
Posted: 21 Jul 2019   Updated: 22 Jul 2019   Views: 17,902   Rating: 4.62/5    Votes: 19   Popularity: 5.57
Licence: The Code Project Open License (CPOL)      Bookmarked: 21   Downloaded: 593
Please Sign up or sign in to vote.
Avoid ORMs with this reasonably generic approach to ADO
Posted: 30 Jul 2007   Updated: 21 Dec 2008   Views: 68,823   Rating: 4.33/5    Votes: 18   Popularity: 4.96
Licence: A Public Domain dedication      Bookmarked: 38   Downloaded: 353
Please Sign up or sign in to vote.
Parse a string with quoted elements, insert/add/delete elements, and is CLS compliant
Posted: 1 Oct 2008   Updated: 1 Oct 2008   Views: 61,322   Rating: 4.69/5    Votes: 55   Popularity: 7.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 84   Downloaded: 657
Please Sign up or sign in to vote.
Implement repetitive tasks at consistent intervals
Posted: 7 Feb 2010   Updated: 17 Mar 2010   Views: 149,886   Rating: 4.95/5    Votes: 74   Popularity: 9.13
Licence: The Code Project Open License (CPOL)      Bookmarked: 309   Downloaded: 3,171
Please Sign up or sign in to vote.
Tie it all together and not lose your mind in the process
Posted: 24 Oct 2008   Updated: 12 Oct 2016   Views: 241,660   Rating: 4.83/5    Votes: 260   Popularity: 11.53
Licence: The Code Project Open License (CPOL)      Bookmarked: 207   Downloaded: 0
Please Sign up or sign in to vote.
My views on how to be a proper programmer
C++
Posted: 16 Oct 2001   Updated: 15 Apr 2008   Views: 162,981   Rating: 3.78/5    Votes: 33   Popularity: 5.73
Licence: The Code Project Open License (CPOL)      Bookmarked: 54   Downloaded: 1,550
Please Sign up or sign in to vote.
Helps with copying a device independant bitmap to the clipboard.
Posted: 27 Jan 2007   Updated: 27 Jan 2007   Views: 41,135   Rating: 4.63/5    Votes: 20   Popularity: 5.44
Licence: The Code Project Open License (CPOL)      Bookmarked: 17   Downloaded: 412
Please Sign up or sign in to vote.
The right way to code using CodeProject for occasional support
Posted: 27 Jan 2007   Updated: 15 Apr 2008   Views: 62,955   Rating: 4.77/5    Votes: 42   Popularity: 7.43
Licence: The Code Project Open License (CPOL)      Bookmarked: 94   Downloaded: 601
Please Sign up or sign in to vote.
The right way to code using CodeProject for occasional support
Posted: 27 Jan 2007   Updated: 15 Apr 2008   Views: 44,692   Rating: 4.81/5    Votes: 24   Popularity: 6.15
Licence: The Code Project Open License (CPOL)      Bookmarked: 24   Downloaded: 653
Please Sign up or sign in to vote.
The right way to code using CodeProject for occasional support
Posted: 27 Jan 2007   Updated: 15 Apr 2008   Views: 37,183   Rating: 4.58/5    Votes: 19   Popularity: 5.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 18   Downloaded: 409
Please Sign up or sign in to vote.
The right way to code using CodeProject for occasional support
Posted: 27 Jan 2007   Updated: 12 Jan 2010   Views: 59,993   Rating: 4.65/5    Votes: 21   Popularity: 5.72
Licence: The Code Project Open License (CPOL)      Bookmarked: 27   Downloaded: 475
Please Sign up or sign in to vote.
The right way to code using CodeProject for occasional support
Posted: 30 Nov 2006   Updated: 30 Nov 2006   Views: 148,912   Rating: 4.05/5    Votes: 51   Popularity: 6.92
Licence: The Code Project Open License (CPOL)      Bookmarked: 49   Downloaded: 1,346
Please Sign up or sign in to vote.
Two methods to retrieve the path/name of a VS2002 or higher DLL from within that DLL.
Posted: 4 Dec 2006   Updated: 4 Dec 2006   Views: 127,289   Rating: 3.33/5    Votes: 41   Popularity: 5.37
Licence: The Code Project Open License (CPOL)      Bookmarked: 19   Downloaded: 0
Please Sign up or sign in to vote.
Compare floating point numbers for equality at programmer-specified precision.
Posted: 17 Nov 2006   Updated: 17 Nov 2006   Views: 86,461   Rating: 4.28/5    Votes: 23   Popularity: 5.37
Licence: Not specified      Bookmarked: 11   Downloaded: 0
Please Sign up or sign in to vote.
A technique for making stdio functions compile clean regardless of the Microsoft compiler used
Posted: 29 Nov 2006   Updated: 29 Nov 2006   Views: 51,661   Rating: 4.54/5    Votes: 20   Popularity: 5.59
Licence: Not specified      Bookmarked: 29   Downloaded: 709
Please Sign up or sign in to vote.
Here's some code that will automatically start your app on a secondary monitor if it's compiled with debug info.
VBScript
Posted: 7 May 2007   Updated: 7 May 2007   Views: 26,352   Rating: 3.59/5    Votes: 9   Popularity: 3.43
Licence: The Code Project Open License (CPOL)      Bookmarked: 18   Downloaded: 0
Please Sign up or sign in to vote.
The VBScript version of my C# article about the very same thing
Security
Encryption
Posted: 4 Oct 2010   Updated: 5 Oct 2010   Views: 67,792   Rating: 4.92/5    Votes: 20   Popularity: 6.06
Licence: The Code Project Open License (CPOL)      Bookmarked: 43   Downloaded: 379
Please Sign up or sign in to vote.
One way to create a completely random encryption key, and sharing it with a client application
Web Development
HTML
Posted: 5 Feb 2011   Updated: 7 Feb 2011   Views: 64,544   Rating: 4.90/5    Votes: 29   Popularity: 7.16
Licence: The Code Project Open License (CPOL)      Bookmarked: 105   Downloaded: 3,353
Please Sign up or sign in to vote.
Windows service for synchronizing folders
Posted: 12 Sep 2016   Updated: 7 Apr 2018   Views: 81,426   Rating: 4.83/5    Votes: 38   Popularity: 7.45
Licence: The Code Project Open License (CPOL)      Bookmarked: 78   Downloaded: 3,196
Please Sign up or sign in to vote.
Parse CSV files.
Posted: 27 Sep 2016   Updated: 25 Feb 2018   Views: 29,423   Rating: 4.97/5    Votes: 25   Popularity: 6.95
Licence: The Code Project Open License (CPOL)      Bookmarked: 45   Downloaded: 284
Please Sign up or sign in to vote.
Abusing attributes, and loving it.
Posted: 6 Oct 2016   Updated: 11 Oct 2016   Views: 25,185   Rating: 4.91/5    Votes: 32   Popularity: 7.38
Licence: The Code Project Open License (CPOL)      Bookmarked: 55   Downloaded: 794
Please Sign up or sign in to vote.
A GPS class with a coordinate parser, distance calculation, and bearing calculation.

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.84

.NET
Posted: 28 Feb 2010   Updated: 21 May 2010   Views: 69,601   Rating: 4.95/5    Votes: 7   Popularity: 4.19
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
Please Sign up or sign in to vote.
Control resizing is a bit more mysterious than it might appear at first glance.
Posted: 5 Apr 2011   Updated: 6 Apr 2011   Views: 15,780   Rating: 5.00/5    Votes: 11   Popularity: 5.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
Never assume you know what the framework is going to do
Posted: 20 Dec 2011   Updated: 20 Dec 2011   Views: 16,391   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
You have everything you need to do your job as a developer. You just need to use them.
Posted: 13 Jan 2010   Updated: 22 May 2010   Views: 18,070   Rating: 4.79/5    Votes: 12   Popularity: 5.17
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Bad formatting will delay the approval of your articles. Follow these basic rules to avoid that delay.
Certification
Posted: 23 Jan 2015   Updated: 23 Jan 2015   Views: 11,790   Rating: 4.82/5    Votes: 5   Popularity: 3.37
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
Some things to be aware of.
Database Development
Posted: 31 Jan 2017   Updated: 31 Jan 2017   Views: 14,968   Rating: 4.52/5    Votes: 6   Popularity: 3.52
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
A scalar function to determine if a given DateTime is one of the ten US federal holidays, using SQL Server.
Posted: 31 Jan 2017   Updated: 31 Jan 2017   Views: 7,910   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Using common table expressions to build data from thin air.
Posted: 22 Sep 2017   Updated: 22 Sep 2017   Views: 4,590   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
It doesn't always happen the way you expect.
SQL Server
Posted: 5 Jan 2011   Updated: 5 Jan 2011   Views: 12,670   Rating: 4.89/5    Votes: 2   Popularity: 1.47
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
You can also enclose your column name in brackets, like so: [Create Date]
Posted: 26 May 2011   Updated: 26 May 2011   Views: 11,660   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
When all else fails, fire off some events and bask in the glow of the IDE's Progress tab.
Desktop Programming
Windows Forms
Posted: 22 Nov 2011   Updated: 22 Nov 2011   Views: 14,511   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
Allow any number of forms to be used as a main form with easy transitions between forms
Posted: 21 Jan 2010   Updated: 22 Nov 2011   Views: 62,352   Rating: 4.88/5    Votes: 41   Popularity: 7.82
Licence: The Code Project Open License (CPOL)      Bookmarked: 24   Downloaded: 0
Please Sign up or sign in to vote.
A useful technique that could be used for winform apps which require a login dialog
Posted: 14 Sep 2011   Updated: 14 Sep 2011   Views: 51,231   Rating: 4.89/5    Votes: 10   Popularity: 4.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
How to automatically display a Winforms menu when the mouse is hovered over an item
Posted: 18 Feb 2011   Updated: 19 Feb 2011   Views: 42,027   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Determine the number of unique colors in an image
Posted: 26 Jan 2011   Updated: 26 Jan 2011   Views: 33,482   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 0
Please Sign up or sign in to vote.
When you need to communicate with the app that contains your ServiceHost object, use custom events
Posted: 1 Feb 2011   Updated: 2 Feb 2011   Views: 27,740   Rating: 4.97/5    Votes: 18   Popularity: 6.24
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
Please Sign up or sign in to vote.
How to determine if your .Net app is running in the Visual Studio IDE
WPF
Posted: 27 Feb 2021   Updated: 27 Feb 2021   Views: 2,590   Rating: 4.33/5    Votes: 4   Popularity: 2.61
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
How to close modeless windows if you don't close them before the main window closes
Posted: 9 Nov 2012   Updated: 9 Nov 2012   Views: 9,320   Rating: 4.89/5    Votes: 2   Popularity: 1.47
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Stuck on a really weird problem in WPF? Move your behind and write some code (behind).
Posted: 15 Jun 2012   Updated: 15 Jun 2012   Views: 35,270   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
One way to get around the "invalid character" error
Posted: 29 May 2010   Updated: 29 May 2010   Views: 44,803   Rating: 4.73/5    Votes: 8   Popularity: 4.27
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
One technique for having a column width that grows/shrinks with ListView width
Posted: 17 Nov 2014   Updated: 17 Nov 2014   Views: 7,250   Rating: 4.00/5    Votes: 3   Popularity: 1.91
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
How to fix this ANNOYING problem
Posted: 31 Jul 2019   Updated: 31 Jul 2019   Views: 8,185   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 11   Downloaded: 0
Please Sign up or sign in to vote.
Make data exchange in MVVM easy on yourself
Posted: 11 Apr 2010   Updated: 22 May 2010   Views: 18,070   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Programatically set grid row/column sizes (yes, even "Auto", "*", and "X*" - thanks Nish).
Posted: 22 May 2010   Updated: 22 May 2010   Views: 40,525   Rating: 4.95/5    Votes: 7   Popularity: 4.19
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
In WPF/Silverlight, you might want to bind to a dictionary. Here's a couple of websites I found.
DevOps
Testing
Posted: 22 Jan 2010   Updated: 22 May 2010   Views: 9,600   Rating: 4.73/5    Votes: 9   Popularity: 4.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
No change is too small for a complete regression test.
General
Posted: 26 Jan 2010   Updated: 22 May 2010   Views: 18,960   Rating: 4.95/5    Votes: 21   Popularity: 6.45
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
Humor - Things to consider when your're out and about when the world starts to come to an end.
General Programming
Posted: 24 Jan 2010   Updated: 22 May 2010   Views: 9,230   Rating: 4.60/5    Votes: 3   Popularity: 2.19
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Essential programmer skill - the ability to approach a problem from more that one direction.
String
Posted: 7 Mar 2011   Updated: 7 Mar 2011   Views: 13,690   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Extension method that checks for a properly Xaml-ized string
Operating Systems
Windows
Posted: 18 Jan 2010   Updated: 22 May 2010   Views: 24,930   Rating: 5.00/5    Votes: 17   Popularity: 6.02
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
Please Sign up or sign in to vote.
Don't drink the kool-aid. You still need to know how to use the Windows API in .Net apps.
Programming Languages
ASM
Posted: 17 May 2011   Updated: 17 May 2011   Views: 9,260   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
This is how I do it (we determine the host and select the appropriate endpoint).// these are the endpoints define in the webconfig filestring LocalHostEndpointName = "LocalHost_Endpoint";string ProductionEndpointName = "Production_Endpoint";string CurrentEndpoint = "";//...
C#
Posted: 9 Jun 2010   Updated: 9 Jun 2010   Views: 15,290   Rating: 4.86/5    Votes: 6   Popularity: 3.78
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
The Silverlight navigation app ErrorWindow exposes the last exception thrown, but doesn't show the INNER exceptions. Here's how you can do it.
Posted: 19 Jun 2010   Updated: 19 Jun 2010   Views: 15,910   Rating: 4.88/5    Votes: 6   Popularity: 3.79
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
What to do if you want to resue a style for more than one component of a particular type on a given Silverlight Page
Posted: 11 Aug 2010   Updated: 12 Aug 2010   Views: 19,211   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
If you need to get the position the mouse was clicked, in relation to a specific UI Element, this might help
Posted: 9 May 2011   Updated: 9 May 2011   Views: 20,030   Rating: 4.95/5    Votes: 10   Popularity: 4.73
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
Get access to your Silverlight MainPage object
Posted: 12 Nov 2017   Updated: 5 Jan 2018   Views: 8,150   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
When you have a customized DbContext constructor.
Posted: 31 Jan 2017   Updated: 31 Jan 2017   Views: 18,312   Rating: 4.82/5    Votes: 13   Popularity: 5.36
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 0
Please Sign up or sign in to vote.
A DateTime extension method to determine if a given DateTime is one of the ten US federal holidays, using C#.
Posted: 1 Feb 2017   Updated: 1 Feb 2017   Views: 9,740   Rating: 4.94/5    Votes: 9   Popularity: 4.72
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
Please Sign up or sign in to vote.
Figuring out when Easter occurs in a given year is based on the phase of the moon, the vernal equinox, and where in the world you are.
Posted: 1 Feb 2017   Updated: 1 Feb 2017   Views: 8,291   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
Please Sign up or sign in to vote.
Find the date of a specified federal holiday for a given year.
Posted: 13 Sep 2016   Updated: 13 Sep 2016   Views: 9,360   Rating: 4.71/5    Votes: 12   Popularity: 4.71
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
This came as a mild surprise
Posted: 11 Sep 2013   Updated: 12 Sep 2013   Views: 37,191   Rating: 4.83/5    Votes: 6   Popularity: 3.76
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 0
Please Sign up or sign in to vote.
One approach to find a specific exception type inside the containing exception
Posted: 2 Oct 2017   Updated: 2 Oct 2017   Views: 6,360   Rating: 4.73/5    Votes: 5   Popularity: 3.30
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
An answer and an example for the question, "What's the best way to learn a language or platform?"
Posted: 10 May 2011   Updated: 10 May 2011   Views: 24,431   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
See if an integer value is a valid value for the given "flags" enumerator
Posted: 7 Jul 2011   Updated: 7 Jul 2011   Views: 5,090   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
.Net 4 has the enum.HasFlag() method, which kinda obsoletes this tip. :)
Posted: 9 Aug 2012   Updated: 12 Nov 2012   Views: 26,201   Rating: 4.90/5    Votes: 3   Popularity: 2.34
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 305
Please Sign up or sign in to vote.
Presenting a DateTime extension class that allows you to determine the actual date of the specified instance of the specified weekday within the specified month/year.
Posted: 18 Nov 2017   Updated: 18 Nov 2017   Views: 6,070   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
One less pesky nuance to worry about
Posted: 28 Nov 2017   Updated: 28 Nov 2017   Views: 4,671   Rating: 4.54/5    Votes: 10   Popularity: 4.33
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
ViewBag, ViewBag, three times full...
Posted: 19 Jan 2011   Updated: 19 Jan 2011   Views: 25,942   Rating: 4.85/5    Votes: 14   Popularity: 5.40
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
Please Sign up or sign in to vote.
Determine if specified date/time properrties are equal
Posted: 6 Feb 2015   Updated: 6 Feb 2015   Views: 5,821   Rating: 4.80/5    Votes: 2   Popularity: 1.44
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
This is an alternative for "Partial DateTime Object Equality"
Posted: 10 May 2013   Updated: 10 May 2013   Views: 5,690   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Determine the nature of the entry assembly
Posted: 7 May 2010   Updated: 21 May 2010   Views: 29,911   Rating: 4.81/5    Votes: 9   Popularity: 4.59
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
Please Sign up or sign in to vote.
Make interfacing with your web service simpler and more maintainable
Posted: 6 Jun 2010   Updated: 6 Jun 2010   Views: 16,081   Rating: 4.77/5    Votes: 6   Popularity: 3.71
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 0
Please Sign up or sign in to vote.
It's not as simple as just calling DirectoryInfo.GetFiles()
Posted: 4 Mar 2010   Updated: 26 Aug 2010   Views: 18,010   Rating: 4.83/5    Votes: 11   Popularity: 5.03
Licence: The Code Project Open License (CPOL)      Bookmarked: 12   Downloaded: 0
Please Sign up or sign in to vote.
You probably have better things to do than writing tedious comparison methods.
Posted: 19 Jan 2011   Updated: 24 Jan 2011   Views: 54,095   Rating: 4.81/5    Votes: 32   Popularity: 7.24
Licence: The Code Project Open License (CPOL)      Bookmarked: 40   Downloaded: 0
Please Sign up or sign in to vote.
How to make your app detect whether or not it's running in admin mode.
Posted: 9 Feb 2011   Updated: 9 Feb 2011   Views: 7,960   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
StringBuilder mystring = new StringBuilder("AbCd");for (int i = 0; i < mystring.Length; i++){ char c = mystring[i]; mystring[i] = Char.IsLower(c) ? Char.ToUpper(c) : Char.ToLower(c);}
Posted: 4 Apr 2011   Updated: 4 Apr 2011   Views: 16,921   Rating: 4.89/5    Votes: 18   Popularity: 6.14
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
What to do when the "you're a moron" epiphany smacks you in the head just after you've convinced yourself you're pretty clever.
Posted: 24 May 2010   Updated: 29 Aug 2011   Views: 30,250   Rating: 4.88/5    Votes: 21   Popularity: 6.34
Licence: The Code Project Open License (CPOL)      Bookmarked: 22   Downloaded: 0
Please Sign up or sign in to vote.
Using a delegate could pull your butt out of the fire when you don't want to refactor code to add functionality.
Posted: 1 Jan 2011   Updated: 1 Jan 2011   Views: 30,121   Rating: 4.82/5    Votes: 4   Popularity: 2.90
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
We're up to .NET 4 and MS *still* hasn't given us this simple functionality.
Posted: 18 Apr 2013   Updated: 18 Apr 2013   Views: 36,061   Rating: 4.89/5    Votes: 2   Popularity: 1.47
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
Go here for an update that utilizes the Twitter API v1.1
Posted: 11 Aug 2017   Updated: 11 Aug 2017   Views: 5,641   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
Please Sign up or sign in to vote.
Handy class to reduce clutter in your code
C# 3.5
Posted: 3 Nov 2015   Updated: 3 Nov 2015   Views: 24,091   Rating: 4.43/5    Votes: 4   Popularity: 2.67
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 0
Please Sign up or sign in to vote.
This is an alternative for "Compareing Two Complex objects of same class"
C# 4.0
Posted: 25 Jul 2012   Updated: 25 Jul 2012   Views: 13,801   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 24
Please Sign up or sign in to vote.
Evaluating epressions in an ad-hoc condition.
Posted: 23 Jul 2011   Updated: 23 Jul 2011   Views: 8,350   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
I wouldn't create a class for this. I'd make it an extension method, and then do this:public static class String Extensions{ public static string Reverse(this string value) { value = // do your reverse code here; return value; }}// Usage:string x...
Posted: 2 Mar 2012   Updated: 2 Mar 2012   Views: 22,875   Rating: 3.89/5    Votes: 4   Popularity: 2.34
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
If at all possible, never give your code the opportunity to fail. If there's any possibility at all that you can prevent an error condition from being raised, do it. try{ if (!string.IsNullOrEmpty(FileName)) { string newPath = System.IO.Path.Combine(FilePath,...
C# 5.0
Posted: 15 Oct 2014   Updated: 15 Oct 2014   Views: 22,398   Rating: 4.72/5    Votes: 8   Popularity: 4.26
Licence: The Code Project Open License (CPOL)      Bookmarked: 11   Downloaded: 0
Please Sign up or sign in to vote.
Retrieve certificates from the system certificate store
Posted: 27 Oct 2014   Updated: 27 Oct 2014   Views: 10,870   Rating: 4.82/5    Votes: 5   Popularity: 3.37
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Extension method to determine fiscal date
Razor
Posted: 25 Jan 2019   Updated: 25 Jan 2019   Views: 4,012   Rating: 3.90/5    Votes: 6   Popularity: 3.03
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
Sharing files between multiple web apps in a single solution.
SQL
Posted: 26 Jul 2011   Updated: 26 Jul 2011   Views: 29,063   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
One way to effectively zero the columns any DataRow object.
Posted: 25 Jul 2011   Updated: 10 Aug 2011   Views: 81,851   Rating: 4.90/5    Votes: 36   Popularity: 7.50
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 0
Please Sign up or sign in to vote.
Just say no to SELECT * in your SQL
Posted: 5 Oct 2015   Updated: 5 Oct 2015   Views: 14,090   Rating: 4.40/5    Votes: 16   Popularity: 4.90
Licence: The Code Project Open License (CPOL)      Bookmarked: 12   Downloaded: 0
Please Sign up or sign in to vote.
Yes, you CAN document your stored procs in C# code.
Visual Basic
Posted: 10 Nov 2011   Updated: 10 Nov 2011   Views: 9,350   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
This is an alternative to "DataSet to String to DataSet".
Posted: 20 Feb 2010   Updated: 9 Jul 2011   Views: 14,250   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
Please Sign up or sign in to vote.
Avoid exceptions when setting enumerators from unknown/untrusted sources.
XML
Posted: 13 Jan 2010   Updated: 22 May 2010   Views: 32,180   Rating: 4.82/5    Votes: 22   Popularity: 6.17
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
Don't reinvent the wheel - use the one that's already on the cart.
Posted: 23 Apr 2010   Updated: 10 Jul 2014   Views: 39,691   Rating: 4.80/5    Votes: 18   Popularity: 5.91
Licence: The Code Project Open License (CPOL)      Bookmarked: 15   Downloaded: 0
Please Sign up or sign in to vote.
Extension methods can help you avoid sticky situations.
Silverlight
Posted: 20 Apr 2010   Updated: 21 May 2010   Views: 25,500   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Dorothy was right - there's no place like home.
Posted: 17 May 2010   Updated: 21 May 2010   Views: 15,150   Rating: 4.75/5    Votes: 5   Popularity: 3.32
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
Follow these guidelines for trouble-free dictionary merging in Silverlight
Posted: 5 Aug 2010   Updated: 12 Aug 2010   Views: 21,801   Rating: 5.00/5    Votes: 10   Popularity: 5.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Get around another irrational and arbitrary omission in Silverlight
Web Development
ASP.NET
Posted: 3 Mar 2010   Updated: 23 Jun 2010   Views: 29,342   Rating: 4.89/5    Votes: 10   Popularity: 4.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 14   Downloaded: 0
Please Sign up or sign in to vote.
A low-impact method for getting the appropriate path on a web page.
Posted: 17 Jun 2011   Updated: 17 Jun 2011   Views: 10,171   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Back-tracking to make sure code is processed before the current page executes
Posted: 21 Jun 2011   Updated: 21 Jun 2011   Views: 18,232   Rating: 4.55/5    Votes: 4   Popularity: 2.74
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
How to execute code in the current page AFTER navigating to a new page.
Posted: 22 Jun 2011   Updated: 23 Jun 2011   Views: 32,930   Rating: 4.82/5    Votes: 7   Popularity: 4.08
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
One way to guarantee uniqueness and avoid misspelling your session variable names
Posted: 6 May 2019   Updated: 6 May 2019   Views: 5,790   Rating: 3.94/5    Votes: 7   Popularity: 3.33
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
This is an alternative for "No More Session Variable Misspellings"
Posted: 5 Jul 2011   Updated: 5 Jul 2011   Views: 5,181   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
I do it this way:0) Create a base page class, and store the current page's url (you can do this any number of ways, so I'll leave it to your imagination):public class MyBasepage : System.Web.UI.Page{ public string CurrentUrl { get; set; } }1) Store the page's Url to a...
Posted: 10 Nov 2011   Updated: 10 Nov 2011   Views: 12,410   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
How about this?public static class ExtendDateTime{ public int CountWeekDays(this DateTime thisdate, DateTime thatDate) { int days = Math.Abs((thisDate - thatDate).Days) + 1; return = ((days/7) * 5) + (days % 7); }}Usage would be like this:DateTime...
Posted: 26 Dec 2010   Updated: 26 Dec 2010   Views: 10,020   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Can't you just call Enum.GetNames(), and then bind to the collection returned by that method?
HTML
Posted: 22 Feb 2019   Updated: 22 Feb 2019   Views: 2,850   Rating: 4.94/5    Votes: 6   Popularity: 3.84
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Mitigate the browser flash between page navigation on your site
Windows service
Posted: 11 Jul 2011   Updated: 11 Jul 2011   Views: 15,071   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
42!

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.

#realJSOP
Software Developer (Senior) Paddedwall Software
United States United States
I've been paid as a programmer since 1982 with experience in Pascal, and C++ (both self-taught), and began writing Windows programs in 1991 using Visual C++ and MFC. In the 2nd half of 2007, I started writing C# Windows Forms and ASP.Net applications, and have since done WPF, Silverlight, WCF, web services, and Windows services.

My weakest point is that my moments of clarity are too brief to hold a meaningful conversation that requires more than 30 seconds to complete. Thankfully, grunts of agreement are all that is required to conduct most discussions without committing to any particular belief system.