Adding Double Click support to the ComboBox control
I was recently using a ComboBox control with the DropDownStyle set to Simple, effectively turning into a combined text box and list box. However, when I wanted an action to occur on double clicking an...
View ArticleCreating a code signing certificate with StartSSL
Edit 02Jan2017: Even if you wanted to ignore the revelations of dubious practices of StartSSL and with them now being owned by WoSign, there is another matter to consider - StartSSL authenticode...
View ArticleTools we use - 2014 edition
Following on from last years post, I'll list again what I'm using and seeing what (if anything) has changed.tl;dr; - it's pretty much the same as last yearOperating SystemsWindows Home Server 2011 -...
View ArticleHosting a ColorGrid control in a ToolStrip
The ColorGrid control is a fairly useful control for selecting from a predefined list of colours. However, it can take up quite a bit of screen real estate depending on how many colours it contains....
View ArticleEssential Algorithms - A Book Review
This post is a review (or possibly some long winded rambling) of the book Essential Algorithms: A Practical Approach to Computer Algorithms by Rod Stephens and published by Wiley.Disclaimer: I received...
View ArticleColorEcho - adding colour to echoed batch text
We use batch files for... well, pretty much everything. From simple files that simple optimize modified graphics, to the tendril-like files that build our software. For some time now, I've been using...
View ArticleAdjusting the Jenkins Content Security Policy
One of the security features of Jenkins is to send Content Security Policy (CSP) headers which describes how certain resources can behave. The default policy blocks pretty much everything - no...
View ArticleIntegrating NDepend with Jenkins Freestyle Jobs
Previously, I've described on this blog how to do a basic integration of NDepend with Jenkins pipeline jobs. The disadvantages of the previous post was it was essentially part of a series tailored to...
View ArticleLoading Microsoft RIFF Palette (pal) files with C#
At the start of 2014, I published an article describing how to read colour palettes from BBM/LBM files. At the end of that article I noted that Microsoft palette files used a similar format, but I...
View ArticleCreating a GroupBox containing an image and a custom display rectangle
One of our applications required a GroupBox which was more like the one featured in the Options dialog of Microsoft Outlook 2003. This article describes how to create a custom GroupBox component which...
View ArticleError 80040154 when trying to use SourceSafe via interop on 64bit Windows
We recently moved to Windows 7, and I decided to go with the 64bit version for my machine. One of the utilities we use is a small tool for adding folders to Visual SourceSafe (why we haven't moved to...
View ArticleUsing XSLT to display an ASP.net sitemap without using tables
The quick and easy way of displaying an ASP.net site map (web.sitemap) in an ASP.net page is to use a TreeView control bound to a SiteMapDataSource component as shown in the following...
View ArticleConverting BBCode into HTML using C#
Although the dynamic content in the Cyotek website is written using Markdown syntax using the MarkdownSharp library, we decided to use the more commonly used BBCode tags for the forums.Some of the...
View ArticleUnable to update the EntitySet because it has a DefiningQuery and no element...
After integrating the new forum code, I added basic subscription support. When replying to a topic and opting to subscribe to notifications, the following exception would be thrown:Unable to update the...
View ArticleSnippet: Mime types and file extensions
If you have a mime type and you want to find the default extension for it, you can get this from the Extension value in the following registry key:HKEY_CLASSES_ROOT\MIME\Database\Content Type\<mime...
View ArticleCreating a Windows Forms Label that wraps with C#
One of the few annoyances I occasionally get with C# is the lack of a word wrap facility for the standard Label control.Instead, if the AutoSize property is set to True, the label will just get wider...
View ArticleBoulder Dash Part 1: Implementing Sprite AI
One of the projects I've had on the backburner for over a year now was a Boulder Dash clone. While I was working on this clone I written a basic game engine using GDI, another using managed DirectX,...
View ArticleCreating a Windows Forms RadioButton that supports the double click event
Another of the peculiarities of Windows Forms is that the RadioButton control doesn't support double clicking. Granted, it is not often you require the functionality but it's a little odd it's not...
View ArticleBoulder Dash Part 2: Collision Detection
In our previous post we introduced the Firefly and Butterfly sprites and their movement rules around a random map. Now we're going to update the project to include collision detection and a new player...
View ArticleAdding a horizontal scrollbar to a ComboBox using C#
In our WebCopy application we decided to update the User Agent configuration to allow selection from a predefined list of common agents, but still allow the user to enter their own custom agent if...
View Article