Janus Ribbon Capturing <Alt> Key

Date February 20th, 2008 Comment No Comments

One of the clients of the company I work for required a client that was predominantly keyboard based to enable them to perform batch processing. This wasn’t a problem as netBake has similar functionality to enable fast entry of Orders, etc. Whilst the client was evaluating the latest build of the client, she noticed that [...]

Tags: ,

Announcing Unregistry

Date September 3rd, 2007 Comment No Comments

I recently had a registry script (.reg) that I had to open to temporarily put certain values into my registry. It was quite a big file. I then realised that, apart from going through the script and removing each key and value individually, there was no automatic way to remove them; so I decided to [...]

Tags: , ,

Icons for C# Projects

Date September 3rd, 2007 Comment No Comments

I’ve been looking for a decent icon application that would support alpha channel; 24×24 icons, that ClickOnce requires on it’s updating dialog; pasting images from the clipboard; Needless to say, I’ve found it. It’s called the RealWorld Icon Editor.

Tags: , , ,

Update: ContextMenuStrip.SourceControl bug

Date June 13th, 2007 Comment No Comments

Dan has submitted this bug to Microsoft, and they’ve recognised it as a bug. Thanks for your feedback. We have reproduced this bug on Visual Studio Codename Orcas Beta1, and we are sending this bug to the appropriate group within the Visual Studio Product Team for triage and resolution. Thank you, Visual Studio Product Team. [...]

Tags: ,

"FindForm()" for ContextMenuStrip Items (almost)

Date June 12th, 2007 Comment No Comments

In a similar manor to the previous post, the following code can be used in the controller for event handlers for ToolStripMenuItem’s on a ContextMenuStrip. Unfortunately, due to a bug found by Dan, this code will not work for any ToolStripMenuItem’s that are in sub-menus in the ContextMenuStrip. Even when combined with the code from [...]

Tags: ,

"FindForm()" for MenuStrip Items

Date June 12th, 2007 Comment No Comments

In C#, you have a Form that has a MenuStrip. The MenuStrip has several ToolStripMenuItem’s at different levels. The Form has a separate controller class. The controller class declares and initialises the Form and handles the Click events raised by the ToolStripMenuItem’s. With most other controls on a Form, a reference to the parent Form [...]

Tags: ,

Rename-o-tron

Date April 6th, 2007 Comment No Comments

I finally had the opportunity to write a small application which I’ve needed for a while. If you’ve ever needed to rename some files that have similar filenames based on a pattern, then this is for you. There are other renaming applications out these that use regular expressions, so I thought I’d throw my hat [...]

Tags: , , , ,

IIS Compression and C# Web Service Wrappers

Date March 27th, 2007 Comment No Comments

I finally had the opportunity to look into traffic compression using gzip / deflate on IIS6, and utilising the compression in Web Service calls in our C# project, netBake. This article gives instructions on enabling compression on static and dynamic contents in IIS6. Now, this only tells the server that if the client can requests compressed [...]

Tags: ,

C# Single Instance Application Code

Date December 4th, 2006 Comment No Comments

This snippet will only allow a single instance of you C# application to run at any one time. All you have to do is insert it into the Main() method. bool IsFirstInstance; Mutex mutex = new Mutex(false, “Local\\[name of application here]“, out IsFirstInstance); if (IsFirstInstance) { Application.Run(new form_Main()); } Application.Exit();

Tags:

netBake Beta 1 Released

Date September 25th, 2006 Comment No Comments

The first beta release of netBake has arrived and is available for download and evaluation. If you would like to try the software please send an email to eval@netbake.net and we will set up a database for you with a 30 day evalution license. [Via: netbake.co.uk]

Tags: , ,