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: , ,

New Site for Current Development

Date March 28th, 2006 Comment No Comments

We finally got around to registering the relevent domain names and the site for our current development is up and running at http://www.netbake.co.uk. Go check it out!

Tags: , , ,

Current Project

Date January 24th, 2006 Comment No Comments

Gary has posted some screenshots in a Flickr set from our current project, a Windows replacement for our Bakery Control System. We’ve pretty much locked down the GUI and are now building the individual modules.

Tags: , , ,

Nice Feature

Date December 19th, 2005 Comment No Comments

I’ve been using Visual Studio 2005 at home for a while now, and I recently made a posting about trying out the OneCare beta from Microsoft. Unfortunately, there appears to be a “feature” in the interaction between the two. You’ve been developing an application in VS and debug it. Runs fine the first time, but [...]

Tags: , , ,