Navigation
 - Home
 - Programming
 - Astronomy
 - Places
 - Essays
 - Friends and Family
 - Music
 - Food
 - Resume

  Other Stuff
 - Message Board
 - Cancun Weather

 

Sites of Interest :

Your Site Here Your Site Here Your Site Here Your Site Here Your Site Here

PDHelpProvider

A Localizable HelpProvider Control

5/5/2003

The HelpProvider control provided with .NET has a bug (or more precisely, I think the bug lies in the C# code generator) that causes it to produce uncompilable code when used on localized forms in C#. This bug is quite annoying if you're writing localizable apps because even if you fix the code that's generated, the next time you go to edit your form, it "fixes" your changes back.

To fix this problem, I have created a component that derives from HelpProvider and accepts the "invalid" parameters that the code generator passes, and then passes all calls down to the underlying HelpProvider with the proper parameters. While VB.NET generates what appears to be identical code, there doesn't appear to be a problem with it in VB, which I suspect is because VB.NET handles the conversion for you (and perhaps C# should too)

Below is a link to the source code. The license is as follows: You may use this code in your own application, commercial or not. You may distribute the compiled code as part of a product, but you may not distribute the source code to the PDHelpProvider without written consent from me. You may not sell the PDHelpProvider alone, as part of a development suite, or in a way that it amounts to a significant portion of the code (5%), without my written consent.

I retain all ownership rights to the PDHelpProvider. By downloading the code, you implicitly agree to this license.

The Code



Copyright 2003, 2004 Pete Davis. Site Designed by http://www.quickness.uni.cc. All Rights Reserved.