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

  • Microsoft Ships First .NET 10 Preview

    Microsoft shipped .NET 10 Preview 1, introducing a raft of improvements and fixes across performance, libraries, and the developer experience.

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

Subscribe on YouTube

Upcoming Training Events