A place to keep my thoughts on programming

Tag Archives: winforms

Time Monitor example

There was a request for a Time Monitor app that would show splits and the lap time including delta’s. Currently LFS, shows you your splits and laps, but only briefly and without any information about how it compares to the … Continue reading

July 16, 2007 .net, geek , , ,

OutGauge Monitor Windows App example

I had a request for an example of Win Forms with OutGauge. This is a very simple project that illustrate how to quickly wire up output from OutGauge to UI. The only tricky bit for novices is the whole Invoke … Continue reading

July 14, 2007 .net, geek , , ,

Cross-thread data access

Continuing on my recent asynchronous UI adventures, my background object tried to access the SelectedItem of a ComboBox and I came crashing down with the dreaded Cross-Thread exception. At this point most of my code has the if(InvokeRequired) boilerplate down…. … Continue reading

July 12, 2007 .net , ,

UserControl need to be able to run with no arguments for Designer

When you create a Custom Control or User Control in Visual Studio 2k5, it needs to be able to render its running state with no additional information. I.e. it needs to have a no argument constructor and cannot need extra … Continue reading

November 14, 2006 .net

System.Windows.Forms.ListBox bug with BeginUpdate()/EndUpdate()

Came across an annoying bug with ListBox. If you use BeginUpdate() and EndUpdate() and only add a single item to a cleared Item collection, then that Item does not show up on Refresh. However if you leave the BeginUpdate()/EndUpdate() out, … Continue reading

March 8, 2005 .net

Tweaking ContextMenu’s for List Items

A little System.Windows.Forms diversion. One thing that’s ill-documented, imho, is the CheckedListBox. And if you then want to add a context menu that’s context sensitive to the Item in the list you are over, then good luck finding any useful … Continue reading

February 7, 2005 .net