Showing posts with label C#. Show all posts
Showing posts with label C#. Show all posts

Monday, December 31, 2012

Chapter 2013

More:C#JavaScriptComicsPhotographyBooksFitne...
read more...

Wednesday, March 9, 2011

Required And Optional Function Parameters

I love using different programming languages. Whether it's C#, PHP, Python or Ruby on Rails, they each have their strengths, which makes finishing projects faster. Choose the best tool for the problem.Today a project I'm working on required an additional parameter to a  Javascript method that was already called in several files. In C# I could write an overload methodUse Overloading in C# versions below 4[csharp]public void MyFunctionA (int par1, int par2){ //some code}public void MyFunctionA (int par1, int par2, string...
read more...

Wednesday, August 5, 2009

Easy Way Detect Changes On The Clipboard With Windows API

A recent Windows Forms project required that I copy data from a grid and an associated object with each cell copied. This allows a user to paste the data in the same grid but in a different set of cells. My problem came when a user would copy data from an external application like Excel, and tries to copy the text into my grid. I had to come up with a way to determine the user was trying to paste something copied from an external program. There is a great solution using a Windows API called GetClipboardSequenceNumber(). ...
read more...
 
Copyright © 2003 - 2014 Thom Allen Weblog • All Rights Reserved.