News

Managed Control Adds Capabilities to Windows Forms Development

Gobicode Ltd. HTMLLabel 1.0 aims to extend Windows Forms development.

U.K.-based Gobicode Ltd. has released an HTML-rendering component designed to extend the capabilities of the .NET Framework.

HTMLLabel 1.0 is an add-on to Windows Forms designed to give forms developers access to a range of text and image formatting capabilities they haven't been able to use before, including super- and subscript, full text justification and in-line images.

HTMLLabel is a managed control that replaces the Windows Forms Label control. It parses the contents of the Text field, processes HTML tags (such as <font> and <img>) and adjusts content accordingly. Essentially, it allows developers to mark up text for Windows applications just as it's done in Web development. Also, the component can render to any graphics surface, which allows developers to extend their own controls with richly formatted content. Because it's C# managed code, there's no browser dependency.

Gobicode did not design the HTMLLabel control to function as a full Web browser, but rather to support a subset of HTML tags that allow developers to format text and images.

One noteworthy feature of this product is its pixel alignment capability. Gobicode says it can provide correct baseline alignment of HTML formatted text regardless of the combination of fonts, styles and sizes being rendered.

The 1.0 release, which shipped last month, adds a feature not seen in the beta version released in January: multi-color gradient fills for the control's background and text. The final version combines fonts of different types and styles, then lets the HTMLLabel handle alignment and baseline calculations.

Developer Warwick Stock founded Gobicode a year ago out of frustration at not being able to render super -- and subscripts in a scientific application he was working on. He now sees the product as a kind of stepping-stone to Windows Presentation Foundation, the next-generation presentation subsystem for the .NET Framework 3.0.

"It gives Windows Forms developers that level of flexibility," Stock says. "A lot of people may not grasp how important things like pixel alignment issues are, but some tools produce output with text misaligned by three pixels or more. That kind of incompatibility is brutal for Forms developers."

The product's installation package includes assemblies for .NET 1.1 and .NET 2.0. It can be integrated into Visual Studio 2003 and 2005, as well as other IDEs supporting the .NET Framework. The install pack also comes with a demo application with C# examples. A single developer license costs $96.50.

About the Author

John K. Waters is the editor in chief of a number of Converge360.com sites, with a focus on high-end development, AI and future tech. He's been writing about cutting-edge technologies and culture of Silicon Valley for more than two decades, and he's written more than a dozen books. He also co-scripted the documentary film Silicon Valley: A 100 Year Renaissance, which aired on PBS.  He can be reached at [email protected].

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube