Extracting embedded images

Periodically we get questions about how to extract and use an image compiled as an embedded resource in an assembly. It’s easily done using the Bitmap or Icon constructor that takes a type and string parameters. The documentation for these constructors describes how they work, but I’ll summarize here. The string parameter is the image name,…

0

Odds and ends from the world of design-time

I’ve fixed a couple of doc bugs that customers were rightfully complaining about. It will be awhile before you’ll see the updated topics, so here’s a summary to give you a head start. How to: Give Your Control a Transparent Background  Several customers have discovered that the given procedure simply doesn’t work. In fact, the procedure…

0

Sharing data across forms with a BindingSource

I’ve seen a lot of questions posted in forums regarding how to use a BindingSource component to share data between forms and keep bound controls synchronized. We created a couple of topics on how to do this, post-VS2005, so you may not have discovered them yet. Check out a topic on sharing a BindingSource here, and a topic on keeping…

0

New White Paper: Windows Forms 2.0 Data Binding Improvements

Yes – another white paper! We’ve been quite the busy beavers here in User Education. Cheryl Simmons has a great two-parter up detailing improvements to the data binding architecture in Windows Forms 2.0. Check it out:Behind the Scenes: Improvements to Windows Forms Data Binding in the .NET Framework 2.0, Part 1Behind the Scenes: Improvements to…

0

Retrieve <?xml-stylesheet> from RSS Feed using XmlDocument

So I’m trying to wrap up this white paper I’m writing on consuming RSS in Windows Forms. I wrote a whole section on how to apply a custom XSLT transform to a feed, and display the resulting HTML in the WebBrowser. (I gave a less-complete version  of a solution in an earlier blog post.) Then…

0

New White Paper: DataGridView Drop-Down Filter Lists

Are you spoiled by the AutoFilter feature in Excel? Do you want the same functionality in the DataGridView control? Then my new whitepaper and sample are for you. See: Building a Drop-Down Filter List for a DataGridView Column Header Cell The DataGridViewAutoFilter library provides a custom DataGridViewColumnHeaderCell with a drop-down filter list that displays each unique…

0

InPlaceHostingManager: Why Does AssertApplicationRequirements() Throw a TrustNotGrantedException?

As you may remember, InPlaceHostingManager is a part of the ClickOnce API that enables a .NET application to download and install other ClickOnce applications. It’s pretty straightforward to use – but there may be one area that trips you up. I was chatting in email with an MVP about why his InPlaceHostingManager application was throwing…

1

Using the Microsoft Feeds (RSS) API from Windows Forms

Wim De Cleen has a great two-part walkthrough up on how to use the new Microsoft Feeds API to display a folder-style list of RSS feeds in Windows Forms. The Feeds API is new with Internet Explorer 7, and is the programmatic interface to the new Windows RSS Platform.I’m working on a white paper that…

3

SQL Server Express, Windows Forms, and ClickOnce

I’m working on a project that will be included in a white paper, and needed to use SQL Server Express 2005 as a database engine. Being the “ClickOnce guy” on the Windows Forms doc team, I immediately wondered: How will I deploy this once it’s ready?Fortunately, Robert Walters already answered that question for me with…

0