Skip to content

Tag Archives: winforms

Rolling Out a Custom WCF Software Updater for Win Forms / WPF

22-Sep-09

Alright, a big one today peoples.  I’ve recently had the opportunity of writing a commercial custom self-updating software package after more than merrily ditching ClickOnceAndHope to the kerb due to exhaustive problems and restrictions, and I would like to share with you today a version I have made for you guys componentised and ready to [...]

DataGridViewCheckBoxCell Always Returns ‘True’ for Value Property

20-Sep-09

Argh! This is why I avoid DataGridViews like the plague. I was working today in a Win Forms app attempting to perform a function if all checkboxes in my DataGridView column had been set to “true” (aka. the user has them all selected). After much anguish and what I’m sure was a bug with the [...]

DataGridView Tricks #2: Set Tooltip on Individual Cell or Entire Row

26-May-09

Here’s another gem if you wish to display ancillary data in a tooltip to your users, this method can be used to display varying information dependant on which cell they have hovered over, or could be used to display a tooltip over the entire row, no matter what cell they are on. You would probably [...]

DataGridView Tricks #1: Set Hand Cursor for Entire Cell

26-May-09

I remember trying a few different solutions for this a couple of weeks ago, none of which would work enabling me to set the “Hand” cursor when hovering your mouse over a particular DataGridView row’s cell. The problem being, that a DataGridViewCell does not support the Cursor property, and a Hyperlink was not suitable as [...]

Best Way to Close Form with Escape Key

21-May-09

Do you wish to allow your users to exit your application, or close a windows form when they press the Escape key? Well first of all, it may be really easy for you if you have a custom “Cancel” button already featured on the screen, as you can simply hook that additionally by the Escape [...]

Programming for Vista, Part 2: Adding Aero Glass in Managed Code

16-Feb-09

In part 1 of my Vista programming series I discussed how to add CommandLink’s to your application. In part 2 this chapter, I wish to discuss how you can enhance your Windows smart client application (primarily targetting Windows Forms in this example) adding a Windows Vista Aero “glass” effect to your application. That would be [...]

Add Image Column to DataGridView with Enum Support

10-Feb-09

I stumbled upon a great article which describes how to create an inherited DataGridViewImageCell and inherited DataGridViewColumn control to achieve an image per row in your DataGridView. In summary here is the custom control you will need, place in a DataGridViewCustomCell.cs or the like in your UI app or class library: namespace DataGridViewCustomCell { /// [...]

Programming for Vista, Part 1: Creating a Vista CommandLink in Managed Code

09-Feb-09

As you may be aware, there is no way currently in .NET for accessing the built-in Vista API’s via a managed code interface which gives you access to the new Desktop Windows Manager (DWM) API which enables Aero glass effects featured in Windows Vista and higher (which I will cover in the next article) and [...]

My name is Graham O'Neale and I'm a software architect from Gold Coast, Australia. I am an overtime thinker, full time coder and awake part time in the real world. I have a keen interest in software development, particularly in the realm of programming (C#, ASP.NET, ASP.NET MVC, LINQ (2 SQL), Entity Framework, Silverlight, Blend, WCF, WPF) and a keen interest in the cutting edge and innovation. I have a new found love for design patterns, ALT.NET practices and well crafted software architecture. The purpose of this blog is to express any thoughts, findings, tips and gripes along my travels in the wonderful world of coding and technology...