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

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube