Geeks With Blogs


View Anthony Trudeau's profile on LinkedIn

Add to Technorati Favorites

Anthony Trudeau .NET Topics related to .NET technologies.
Binding Multiple Selection in RadListBox
Telerik quietly added a feature to their WPF RadListBox in their 1Q 2015 update that is coincidentally a feature I needed in a current project. The feature is the ability to bind the selected items in the RadListBox. The Problem The out of the box ListBox as well as Telerik’s RadListBox both have a SelectedItems property. Unfortunately, for whatever reason neither support binding to the property. My current project is a WPF Prism application with specialized module loading. The application will live ......

Posted On Monday, March 9, 2015 10:16 PM

RegionManager missing from Namespace?
I struggled with an error in my XAML on a new project this weekend. The error is a design time error. That is, my project compiled and ran perfectly. But, the designer had the error: The name ‘RegionManager’ does not exist in the namespace “ This occurred in Visual Studio 2012 with the Prism 4.1 libraries that were especially compiled against .NET Framework 4.5. And that annoyingly had to be modified and resigned for the appropriate version of the Unity 3 library. It ......

Posted On Tuesday, October 1, 2013 9:48 AM

EF Doesn't Like Same Named Tables
It's another week and another restriction imposed by the Entity Framework (EF). Don't get me wrong. I like EF, but I don't like how it restricts you in different ways. At this point you may be asking yourself the question: how can you have more than one table with the same name?The answer is to have tables in different schemas. I do this to partition the data based on the area of concern. It allows security to be assigned conveniently. A lot of people don't use schemas. I love them. But this article ......

Posted On Tuesday, July 2, 2013 9:17 PM

Stored Procedures in Entity Framework 6
I've been working with the alpha version of Entity Framework 6 (EF6) for a short time now. I'm using EF6 in a real-world project currently under development. I don't make it a habit of using pre-release software for projects like this. However, the ability to map modifications (insert, update, and delete) to stored procedures is just what I need. I wanted to use an ORM solution and I've used and liked EF for other projects since POCO support became more well-rounded.I want to point out the shortcomings ......

Posted On Tuesday, May 28, 2013 9:32 PM

Timestamp to String
The SQL Server TIMESTAMP data type is represented as a byte array in the .NET Framework (byte[] in C#). You may have the need for any number of reasons to provide a representation of the timestamp that can be displayed to the user or for debugging purposes. This may seem complicated at first glance, but the .NET Framework already includes methods to complete the operation in a few lines of code. The only trick that you need to know is if the helper object treats the bits as big endian or little ending ......

Posted On Saturday, January 5, 2013 7:41 PM

Exit Infragistics, Enter Telerik
Today I made the purchase of the Premium Collection of components from Telerik. This follows an evaluation I’ve been doing to replace the Infragistics components we currently use for Windows Forms, ASP.NET MVC, and WPF. It was not a formal evaluation. I had already decided to move the company away from Infragistics. That decision was mostly born out of frustration with support over using the Infragistics components in my first production MVC application. One such issue was a simple scenario where ......

Posted On Wednesday, June 27, 2012 4:27 PM

InvalidProgramException Running Unit Test (Bug Closed)
In a previous post I reported an InvalidProgramException that occurs in a certain circumstance with unit tests involving accessors on a private generic method. It turns out that Bug #635093 reported through Microsoft Connect will not be fixed. The reason cited is that private accessors have been discontinued. And why have private accessors been discontinued? They don't have time is the reason listed in the blog post titled "Generation of Private Accessors (Publicize) and Code Generation for Visual ......

Posted On Friday, January 28, 2011 7:40 AM

InvalidProgramException Running Unit Test
There is a bug in the unit testing framework in Visual Studio 2010 with unit testing. The bug appears in a very special circumstance involving an internal generic type. The bug causes the following exception to be thrown: System.InvalidProgramExcept... JIT Compiler encountered an internal limitation. This occurs under the following circumstances: Type being tested is internal or private Method being tested is generic Method being tested has an out parameter Type accessor functionality used to access ......

Posted On Friday, January 7, 2011 11:33 AM

NDepend Evaluation: Part 1

An updated version of this post is located in the following location:

Posted On Monday, August 30, 2010 4:47 PM

SCSF for Visual Studio 2010

The Smart Client Software Factory (SCSF) for Visual Studio 2010 was uploaded tonight.  You can get it, the source code, and the documentation on the patterns & practices page.

Note: Do not forget to "unblock" the documentation (CHM) file after you download it.  To unblock it right click the file, choose Properties, and click the Unblock button.

Posted On Friday, May 21, 2010 11:07 PM

SCSF for Visual Studio 2010
The Smart Client Software Factory (SCSF) version for Visual Studio 2010 is supposed to be released sometime this week. The updated (final?) source code is available on the patterns & practices site already, but I'm guessing it could be updated again due to changes found during the final testing. You'll need the Visual Studio 2010 SDK as well as the new versions of the Guidance Automation Extensions (GAX) and the Guidance Automation Toolkit (GAT) for the SCSF. Here are the direct links for those ......

Posted On Tuesday, May 18, 2010 3:17 PM

Storing Entity Framework Entities in a Separate Assembly
The Entity Framework has been valuable to me since it came out, because it provided a convenient and powerful way to model against my data source in a consistent way. The first versions had some deficiencies that for me mostly fell in the category of the tight coupling between the model and its resulting object classes (entities). Version 4 of the Entity Framework pretty much solves this with the support of T4 templates that allow you to implement your entities as self-tracking entities, plain old ......

Posted On Monday, April 19, 2010 2:56 PM

Lazy coding is fun
Every once in awhile I get the opportunity to write an application that is important enough to do, but not important enough to do the right way -- meaning standards, best practices, good architecture, et al. I call it lazy coding. The industry calls it RAD (rapid application development). I started on the conversion tool at the end of last week. It will convert our legacy data to a completely new system which I'm working on piece by piece. It will be used in the future, but only the new parts because ......

Posted On Monday, March 15, 2010 5:39 PM

SQL80001: Incorrect syntax near ':'

When you add SQLCMD statements to a pre-deployment or post-deployment file in a database project in Visual Studio 2010.  You might see the error "SQL80001: Incorrect syntax near ':'".  This is not a real error assuming you have the correct SQLCMD syntax.

To clear the errors temporarily right click on the document and select SQLCMD mode.

Posted On Friday, March 5, 2010 10:25 PM


Microsoft has a new documentation tool coming called Sandcastle. Sandcastle creates MSDN like documentation by reflecting over your assemblies and optionally integrating your authored XML documentation.

Posted On Friday, July 28, 2006 8:04 AM

XML Schema Providers for Serialization

Keith Pijanowski had a great article in MSDN magazine titled “Enrich Your XML Serialization With Schema Providers in the .NET Framework.” His article talks about the use of XML schemas for the purpose of serialization with classes. Using an XML schema removes some of the limitations I mentioned in a previous article about using XML serialization including the need for a set accessor. This of course brings a new problem to the table. Where do you put the schema files? The most obvious choi

Posted On Wednesday, June 14, 2006 1:44 PM

Impersonation with WCF Services and ASP.NET
Whew! It's been a busy week. Earlier in the week I put together an internal demo to illustrate some of the system architecture for an ungoing project. And the purpose of this post is to document a couple of gotchas that may not be clear and didn't seem to be well documented. This post is purposely terse, because I don't have a lot of time to be detailed due to some upcoming deadlines. The architecture involves WCF Services that are hosted in a Windows Service and that will be consumed by both Windows ......

Posted On Thursday, February 25, 2010 3:18 PM

Calendar-based Timer
You may have a need to perform an action way off in the future based on a specific date and time. The future date could be a day, week, month, etc. The timers provided within the .NET Framework do not support this scenario; however, they do provide the core mechanism. The first step is choosing a timer. There is the System.Timers.Timer, System.Threading.Timer, and of course the System.Windows.Forms timer which is designed for Windows Forms applications. I chose the System.Threading.Timer, because ......

Posted On Thursday, January 28, 2010 10:55 AM

System.IO.File.ReadAllText Doesn't Allow Shared Writing

Does anyone have a compelling reason why System.IO.File.ReadAllText throws a System.IO.IOException when you call it when the file is being written to?  Obviously, the cause of the exception is that internally it allows only Read sharing.  But, why?

It's not a terribly big issue, because creating the System.IO.FileStream and passing that to the System.IO.StreamReader is trivial.  However, that doesn't quell my curiousity.  Is it an implementation bug, or was it intentional?

Posted On Monday, January 4, 2010 1:34 PM

Odd Error on ReceiveCompleted Operation of MessageQueue
In my unit tests I'm consistently getting a MessageQueueException when testing an object that queues and receives back messages from a message queue (in this case it is private, but public is supported). The exception occurs with the first message that is processed through an empty queue and then I don't see it again. The odd thing about this exception is that the MessageQueueErrorCode does not match up with one of the enumeration values and the Message is a null value. The MessageQueueErrorCode ......

Posted On Thursday, December 31, 2009 4:45 PM

Problem after Converting Project to NetAdvantage 9.2 -- Solved
Yesterday I was contacted by Craig Shoemaker from Infragistics about the problem I posted the day before. Mr. Shoemaker jumped on the problem and said he would get development support management involved. And I promptly received a response from a development support engineer with the likely solution. The forum posting that the support engineer linked to had a screen clip that looked exactly like my problem. And I'm happy to report that the problem is resolved after performing the steps indicated. ......

Posted On Monday, November 30, 2009 9:31 PM

Problem after Converting Project to NetAdvantage 9.2
I am having a peculiar problem with one of my projects after upgrading to the Infragistics NetAdvantage 9.2 suite. The problem is best shown with a picture (see below), but could loosely be described as having pen button images on most of my Infragistics based controls. This is a CAB-based application and is not the first CAB-based application that I have converted to 9.2. However, it is the first one that has exhibited any problems after converting it from 9.1 to 9.2. It's worth noting that I don't ......

Posted On Saturday, November 28, 2009 5:45 PM

Changing Printer Settings with PrintDocument
The System.Drawing.Printing.Pri... class has the Print mode which will print your document directly to the printer. The Infragistics NetAdvantage suite has a couple of subclasses of PrintDocument. One of them is the Infragistics.Win.UltraWinGr... which is designed to print the contents of a specific data grid. The problem I ran into with the PrintDocument is that it prints to the default printer. There is no prompt for a different printer. However, as it turns out getting ......

Posted On Thursday, October 22, 2009 2:27 PM

Infragistics NetAdvantage 2009 Volume 2

Infragistics just released 2009 Volume 2 of their NetAdvantage Windows client controls which includes controls for Windows Forms and WPF.

New Controls:

  • Timeline control
  • Tile Panel
  • WinControlContainerEditor

See the Infragistics New Features page for more information.

Posted On Monday, September 14, 2009 2:06 PM

Infragistics Timeline Control
The UltraTimeline control is one of the new controls being released with this month's NetAdvantage for Windows Client release. The new UltraTimeline control is joined by a new layout metaphor called the UltraTilesPanel (see a video of both here). However, the timeline control is what I'm most excited about. A timeline control displays a data series across a period of time for different subjects. For example, in a scheduling scenario a subject is a person and the data series is the appointments for ......

Posted On Friday, September 4, 2009 2:12 PM

Microsoft Connect ID 404851 Resolved
I had the first bug that I reported resolved through Microsoft Connect today. The bug was minor and related to automatic comments in the Task List. The problem was that automatically generated tasks wouldn't get removed if you deleted a line of code that contained a token such as TODO or UNDONE. I know it's pretty small, but I was proud nonetheless. The ID for the bug is 404851. The fix will be part of Visual Studio 2010 ......

Posted On Thursday, August 6, 2009 2:27 PM

FR11622: Serializable EventArgs for Infragistics Controls
I ran into an issue on Friday night while using the Infragistics controls within the scope of the Composite UI Application Block (CAB). My problem started when I tried to create a command with CAB from a UltraToolbarsManager tool using a function with a CommandHandler attribute that matched the signature of the event as shown below: // statement within the work item Commands["MyCommand"].AddIn... "ToolClick"); [CommandHandler("MyCommand")] public void MyCommand(object sender, ToolClickEventArgs ......

Posted On Wednesday, July 22, 2009 9:50 AM

Custom formatting for control data binding
The databinding functionality for Windows Forms is pretty easy to use if not a little basic. However, the bindings do allow you to assign an IFormatProvider which would mean to me that you could format the data in any way you want. However, it appears that the formatting only applies for the purpose of globalization. Instead, if you want custom formatting (ICustomFormatter) for your data you'll need to handle the Format event of the binding. You'll also have to handle the Parse event if your parseable ......

Posted On Monday, July 13, 2009 11:41 AM

Unrecognized configuration section userSettings
Tonight I ran into a problem running the start of a composite application that I was making work with the Infragistics support for the Composite UI application block. The problem occurred with the simplist implementation of an empty shell form. The exception was a configuration exception that said, "Configuration system failed to initialize" and it had an inner exception with the message, "Unrecognized configuration section userSettings..." I let Visual Studio create a Settings class and add the ......

Posted On Monday, July 6, 2009 5:16 PM

Enterprise Library
The other day Lindsay Rutter with Microsoft did a webcast on the Enterprise Library. I've used the exception handling block in a few projects, but my opinion had been that the library was bloated and was low on my priority list of technologies to investigate. The talk on dependency injection in the webcast changed my mind. I immediately got a return on my investment as I wanted a more flexible method for tracing then what is offered from the Trace class in the System.Diagnostics namespace. And most ......

Posted On Friday, June 26, 2009 12:49 PM

SCSF Guidance Recipes Not Available
I ran into a problem with a Smart Client Software Factory (SCSF) solution that I'm working on. I created my modules and then attempted to create my views within those modules. I used the "Add View (with presenter)" recipe; however, the resulting dialog would not let me select my module projects. The requirements for running the recipe are that you need to reference the main composite application libraries namely Microsoft.Practices.Composi... and Microsoft.Practices.ObjectB... and you need a ......

Posted On Thursday, April 23, 2009 5:26 PM

Using an UltraExplorerBarGroup as a UIExtensionSite
The Infragistics NetAdvantage control suite provides good support for the composite application block (part of the smart client software factory). However, I ran into the difficulty today when I wanted to extend an existing group in an UltraExplorerBar instance. I'm using an UltraExplorerBarWorkspace in my ShellLayoutView. At the start, it contains only one group with the text "Properties" and the key "PropertyGroup". I have the need for modules to add their own groups and to add items to the "PropertyGroup". ......

Posted On Tuesday, April 14, 2009 5:33 PM

Simple explanation for co-variance and contra-variance
Co-variance and contra-variance have always been two terms for me that made me pause. Neither are hard to understand and we often use what they mean instinctively in object-oriented programming. However, before today if you were to ask me what they were I would have to give you an example. For some reason, a clear, concise definition escaped me. Then today I read a blog post on C# v4.0 on the Intel website that summed it up in one of those "ah ha" and "duh" moments. Co-variance is when you treat ......

Posted On Monday, April 13, 2009 2:32 PM

Beware of System Restore

I'm at our Mexico user group this week and I had a heck of a day yesterday relating to System Restore. I've used System Restore in the past, but never had problems like this.

Posted On Friday, May 19, 2006 11:32 AM

Consolas font

I attended a fun Microsoft webcast yesterday designed for beginners working with hardware with .NET. During the meeting the presenter showed several demos and his Visual Studio used a really nice font called Consolas. He had a blog post about the font. Here's the link that includes a download link:

Posted On Saturday, May 6, 2006 8:20 AM

Simple Caching
In a current project I had a need for a lightweight caching mechanism. My needs were driven by a desire to minimize file access. The file in question would likely not be too long; however, I couldn't guarantee that. Therefore, a caching framework such as provided by the Enterprise Library was just too much. This post talks about what I put together. The following are the only imports necessary. using System; using System.Collections.Generic; My requirements are simple enough. I want to be able to ......

Posted On Tuesday, February 24, 2009 11:08 AM

Unit testing for serialization
I'm created a simple utility class for unit testing serialization for my first post of the year. I originally created the class to test data contract serialization, but I extended it for IFormatter based serializers for another class I needed to test. I hope it proves useful. You'll need the following using statements: using System; using System.IO; using System.Runtime.Serialization; The following utility class will help you with unit testing serialization for your data contracts and serialization ......

Posted On Sunday, January 4, 2009 4:54 PM

Memory Access Patterns are Important
The latest MSDN magazine has an article by Stephen Toub, Igor Ostrovsky, and Huseyin Yildiz called "False Sharing" ( Early in the article the author puts out the argument that memory access patterns are important. And he provides an example. The example (listed below) is a simple program that creates a multi-dimensional array, iterates through it, and displays the time it took. The program first goes through each row and each column of each ......

Posted On Thursday, October 16, 2008 5:28 PM

EDI Update
My EDI project is plodding along as planned. We flirted with the possibility of having our VAN do the translation after a couple of issues came up: Customer provided a shorter than expected deadline Customer increased the number of forms required However, at the end of the day the VAN didn't look like they could deliver the forms in the alloted time and the customer decided they weren't ready for the deadline -- they're phasing their vendors in different waves. Based on all of these criteria I am ......

Posted On Saturday, September 20, 2008 8:21 PM

Unit testing on events
Here's a little method I came up with recently to test the execution of events. You may not ever need to test to see that an event fires, because you have some other state that you can check. However, that is not always the case. Here is how I approached it using the unit testing provided with the developer's team editon of Visual Studio. The first thing I did was add a wait handle object inside the definition of my unit test class. Specifically, I chose a ManualResetEvent for the most control, but ......

Posted On Thursday, June 26, 2008 8:52 AM

Infragistics support with SCSF -- April 2008
I just recently installed the new version of the Smart Client Software Factory (SCSF) and wanted to utilize the Composite UI Application Block (CAB) support within my Infragistics components with it within Visual Studio 2008. Luckily, the process is easy and these steps are all you have to do: Open Visual Studio 2008 Open the Infragistics.CompositeUI.Wi... solution and allow the conversion Add references to the following Microsoft libraries from the SCSF installation: Microsoft.Practices.Composi... ......

Posted On Friday, May 23, 2008 4:03 AM

Catching General Exceptions
Probably all of us know now that you shouldn't catch general exceptions (CA1031). There are practical reasons for this rule such as the fact that you really cannot handle an OutOfMemoryException or StackOverflowException for example. Here is an example of catching a general exception for those that might not know what I'm talking about. try { } catch (Exception ex) { } There are also more intrinsic design reasons why you shouldn't catch a general exception. And if there is no other reason, if you're ......

Posted On Saturday, April 26, 2008 3:02 AM

Funny Little Logic Errors
I received an email this morning from my manager saying that I need to look at this one utility, because it's showing a high CPU utilization and preventing another application from running. The utility runs on a Terminal Server so the problem is exaserbated by multiple users in different sessions. Keep in mind that this utility has been in production for several months and there have been zero bug reports. But, sure enough using the information I was able to duplicate the problem and based on the ......

Posted On Monday, March 10, 2008 4:48 AM

Overview of custom attributes
Attributes are elements of metadata that you can attach to entities such as assemblies, classes, methods, properties, et al. The .NET Framework makes use of many attributes that allow you to affect the behavior of the compiler or how the Framework uses an entity. For example, you can assign attributes to properties of a control object that allow a friendly name and description to be shown in the property browser in Visual Studio. At some point, you'll come into a situation where you'll want to use ......

Posted On Wednesday, January 16, 2008 9:51 AM

Book review: Introducing Microsoft LINQ
I got this book as a Christmas present and quickly read through it cover to cover. The primary focus of the book is to provide an introduction to LINQ (language integrated query) that is available in the Microsoft .NET Framework 3.5. In this end the book does a good job. Just don't look for anything comprehensive. The book starts out talking about what LINQ is and follows that up with a few chapters that talk about the new language features in C# and VB that make LINQ possible. I found the information ......

Posted On Tuesday, January 8, 2008 7:30 AM

Custom dictionary at the project level
The MSDN documentation indicates that the custom dictionary for the naming rules in the Visual Studio code analysis can be applied at the project level. I prefer a local scope for terms that don't have a scope global to all my projects (e.g. the company name is good to have global but a product name doesn't really need to be in the global dictionary). Unfortunately, it doesn't tell you all the information you need to actually use the custom dictionary. The first thing to do is create the custom dictionary ......

Posted On Wednesday, December 26, 2007 7:58 PM

Example: Regular Expression Alternation
So, the scenario is that you want to do some specific validation or matching, but part of what you're validating or matching will decide how the rest is validated or matched. For example, in my scenario I have a field in the database that will store a report destination in the URI format that can be either for e-mail, FTP, or a file (mailto://, ftp://, or file://). You could create three regular expressions and evaluate each, but that can be klunky especially if you're doing on the fly validation ......

Posted On Tuesday, September 11, 2007 12:40 PM

Making your assemblies visible to Visual Studio
So, you created your super cool library and you want to be able to use it within your application. You maybe even installed it in the GAC. But, it doesn't show up in the Add Reference dialog unless you browse to it. What are you to do? There are two approaches: Copy the assemblies to the C:\Windows\Microsoft.NET\Fr... folder (version may vary) or the C:\Program Files\Microsoft Visual Studio8\Common7\IDE folder. Add a special assembly folder key to the Registry Personally, I believe ......

Posted On Thursday, June 21, 2007 11:43 AM

Exposing a collection in your object model
Sometimes it's necessary to expose an internal collection from an object to a hosting object. However, usually your object wants to control the changes to the collection. You can easily pass an array to the hosting object using the ToArray method, but that array is static to the hosting object. What if the hosting object needs updates? The best way to illustrate the problem is with an example. In this example, I have a simple Windows Forms project with a Form that has an Infragistics UltraWinGrid ......

Posted On Monday, June 18, 2007 5:15 PM

WPF controls from Infragistics

Yesterday Infragistics released the 2007 Volume 1 Beta 1 of the NetAdvantage control suite for Windows Presentation Foundation (WPF). I really like the look of the data presenter (carousel view), but then I like shiny things. I'm hoping they put the data presenter in their .NET 2.0 version of the control suite, because I will not being doing WPF for awhile. And for that matter I'm hoping they release 2007 Volume 1 soon for the .NET 2.0 controls. The new version will have a beta of some new

Posted On Friday, February 9, 2007 1:29 PM

CAB and Infragistics

...this evening I took some time to get a feeling of the basic project infrastructure created from the Smart Client project type and see what it would take to get it to work with the Infragistics NetAdvantage control set. I initially suspected that the implementation would be quite involved. But, it turned out that only a few simple if not monotonous steps are required.

Posted On Tuesday, February 6, 2007 6:45 PM

Strong naming the Enterprise Library

I'm in the process of slowly setting up everything I need on my Dell Precision M65 (for my new job). Last night I was installing the Enterprise Library and came to the same old, long process of having to strong name the assemblies -- which is a requirement if you want to use it in any projects you have that are strong named. It's always a pain, and I was hoping someone had an automated way. I didn't find an automated way, but I did find the following nice write-up that provides good ...

Posted On Wednesday, November 8, 2006 1:15 PM

Code translation for C# and VB.NET

Code translation came up today when somebody asked me if they knew of a tool for translating VB.NET to C# code. There are probably quite a few tools. But, there is an online one that's easy to use and the price is right (i.e. free). The translator can be found at: I recommend that you copy and paste code into the textbox, because the translator tries to translate as you type and that can be slow. I haven't really used the tool to read

Posted On Wednesday, September 13, 2006 1:52 PM

Using WIA for scanning

I was playing around this morning with scanning images and put together an adapter class that uses the Windows automation library (WIAAUT.DLL) which is part of the WIA automation SDK -- WIA means Windows Image Acquisition.

Posted On Saturday, July 29, 2006 10:33 AM

Changing initialization parameters and registration arguments at run-time

Initialization parameters allow you to initialize the state of an event control based on your environment. For example, you might have a connection string defined as a initialization parameter, so that the connection can easily be changed. Registration arguments are conditions you place on the link between a producer and consumer. The condition determines whether or not an appropriate event is passed to the consumer. Initialization parameters and registration arguments are defined within t

Posted On Tuesday, May 2, 2006 4:01 PM

Could not find type

I stumbled onto what I would consider a bug in the Visual Studio 2005 IDE today. The issue came about after I rebuilt due to renaming a type that was used in a user control. After building I got an error when I attempted to load the user control in design mode. The error was: Could not find type 'TypeName'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.

Posted On Thursday, April 20, 2006 11:58 AM

Disposing pattern code snippet

I had some time today when my wife was at the mall to play around with the code snippets finally. I think I've really missed out on something by not getting into them sooner. But, hey, I'm like a kid with a new toy. My first creation is the disposing pattern that I use frequently.

Posted On Saturday, April 15, 2006 3:05 PM

Object arrays as initialization parameters and registration arguments

The iMotion Edgeware platform provides two methods for configuration of the event controls namely initialization parameters and registration arguments. Initialization parameters are tied to an individual event control assigned either as attributes in the default editor or through a custom editor when the event control implements the IEventControlDialogProvider interface. Registration arguments provide a method for an event producer to filter events to a particular consumer by assig

Posted On Saturday, March 11, 2006 5:09 PM

User Defined Aggregates (UDA) in SQL Server 2005

I finally got back to reading some of my “Introducing Microsoft SQL Server 2005 For Developers” book and I stumbled upon the topic of user defined aggregates (UDA). I think this is an interesting subject, although probably only useful in very distinct scenarios.

Posted On Wednesday, January 18, 2006 3:50 PM

Localizing display properties in the PropertyGrid

So, localizing display properties in the PropertyGrid has been done before. Probably ten different ways. However, until the .NET Framework 2.0 it required some messy implementation in the concrete class. Version 2.0 adds the TypeDescriptionProvider which can be tied to a particular class using the TypeDescriptionProviderAttribute. The attribute accepts a type that inherits the TypeDescriptionProvider base class...

Posted On Friday, December 30, 2005 8:48 PM

Infragistics NetAdvantage 2005 Volume 3 (CLR 2.0)

I got the notification yesterday afternoon about the release of the Infragistics NetAdvantage 2005 Volume 3 for Visual Studio 2005 (CLR 2.0). Of course the servers were taxed, so I couldn't download it until later in the evening.

Posted On Thursday, December 15, 2005 11:56 AM

Odd library selection behavior

I hope my weblog doesn't turn into the Visual Studio 2005 bug site. But, I've ran into some additional anomalous behavior. The problem occurred when I was unit testing some classes in Visual Studio. The project is a class library (Library A) that accesses another class library (Library B) that is not part of the solution. Now the crux of the problem is that Library B was recently converted for use under 2.0. I have this library (different Framework versions) in different project folders.

Posted On Thursday, December 1, 2005 7:36 AM

Create Instance menu option not displayed

I have quickly fallen in love with the Object Test Bench even though its really not much more than a souped-up, visual Immediate Window. However, in a project last night I was stumped to see that the “Create Instance“ menu option was not shown in the Class View as the Help file indicated it would be. I didn't think much of it and I just did my object creation from the Immediate Window which created the object in the OTB for me. However, this morning rational thought brought on by a decent nig

Posted On Wednesday, November 30, 2005 7:02 AM

First real VS 2005 solution started

I bit the bullet today and started my first 2005 solution. I'm not talking about a “coding for fun” project. I'm talking about an enterprise solution. Specifically, to handle automated shipping and receiving for RFID...

Posted On Monday, November 28, 2005 12:52 PM

Calculating a GTIN check digit

The EPCglobal tag data standards provides a calculation for the GTIN (global trade item number) check digit during SGTIN (serialized global trade item number) decoding. However, this algorithm although mathematically correct does not work computationally due to the way some computers handle modulus for negative numbers.

Posted On Friday, November 11, 2005 4:18 PM

Tip on binding to hierarchical data in UltraGrid

The Infragistics UltraGrid allows you to bind to hierarchical data. However, I didn't get the results I was expecting when I called SetBinding with a band collection that I created at design time. In my particular case the results of the child band included all of the columns from the child table...

Posted On Tuesday, November 1, 2005 11:53 AM

Copyright © Anthony Trudeau | Powered by: