New Header!
Huzzah! I’ve utilised all my artistic skills and whomped a new header to the site! I’m sure you’ll agree it’s pretty spiffy 🙂
Huzzah! I’ve utilised all my artistic skills and whomped a new header to the site! I’m sure you’ll agree it’s pretty spiffy 🙂
The adventures of me in Wpf and Extension methods. Do I succeed or do I fail? Read to find out the stunning conclusions!!
Last week I was tasked with developing a new App for the guys I work with, (not a developers app you understand, but for actual normal users!!! Luckily it puts me smack bang where I work best – developing functional, extendable (and most importantly) Windows based apps. I’m now officially in my comfort zone! The…
Not a development post (in the true meaning of the word :)) but more about a website I found a few days ago… Jamendo.com – I spend my coding time listening to music, it’s how I work and particularly with the distractions of an office with other people, it’s often the only way to ‘zone…
I’ve got the following situation: DateTime? myDt = (DateTime) row[“Column”]; This fails when retrieving a DBNull value, so we check for that: DateTime? myDT = (row[“Column”] == DBNull.Value) ? null : (DateTime) row[“Column”]; This won’t compile, however doing: DateTime? myDT; if(row[“Column”] == DBNull.Value) myDT = null; else myDT = row[“Column”]; works fine, now, I realise…
I’ve been practicing my F# recently – I took a gap for a little bit, and just got back into it. I’ve been working through my ‘Foundations of F#’ book, and have hit a slight snag. There is one line of code I can’t get to compile, I get the ‘Missing format specifier.’ error for…
You wouldn’t have thought it would be that hard to print word documents from within C# – hook up the project to the Word Interop dlls – open the document and print. Easy. In fairness – a lot of it is like this – and setting up a printer is pretty easy; PrintDocument pd =…
I’m gradually in the process of shifting our CruiseControl based CI service to use JetBrain’s TeamCity Professional solution (both are free). The main reason for moving to TeamCity is that whilst CruiseControl worked and did our CI adequately, TeamCity provided more bang for your buck (and when the buck is 0, it’s win-win). TC is…
Again another reminder, in WinForms I would have done: private delegate void UpdateUiTextDelegate(Control control, string text); private void UpdateUiText(Control control, string text) { if(InvokeRequired) { Invoke(new UpdateUiTextDelegate(UpdateUiText), new object[] {control, text}); return; } control.Text = text; } Using the same delegate we need to use the Dispatcher.Invoke method – this is (as far as I’m…
I’m really only putting this in to remind myself — having come from a WinForms background, I’m used to: _btnOK.Enabled = false; but in WPF this is: _btnOK.IsEnabled = false; For some reason I (without fail) forget this!