Welcome to MSDN Blogs Sign in | Join | Help

April 2006 - Posts

Why All My Windows Forms Programming is in Visual Basic Lately

In the Windows Forms documentation team, we need to be skilled in both C# and Visual Basic, as we are tasked with writing code examples for both languages. Traditionally, I've biased my work toward doing C# first, and converting to Visual Basic later.
Posted by Jay A. Allen | 4 Comments

ClickOnce: How to Dynamically Detect Data Directory Between Debug, Release, and Publish

Dynamically Detecting the Data Directory My Slideshow control ( which I discussed in a previous post ) looks in a data directory called images for the images it wishes to display. This adds a curious twist to application development and deployment. When

ClickOnce: Installing FrontPage Server Extensions 2002 on IIS 6.0 for Publishing

In order to test some ClickOnce deployments today, I had to configure a new Web server to allow ClickOnce publishing through Visual Studio. ClickOnce deployments can be x-copied to a Web server, so not having that auto-publish capability is not the end
Posted by Jay A. Allen | 5 Comments
Filed under:

Adding Glass to a Windows Forms App on Vista

Tim Sneath, Windows Vista tech evangelist extraordinaire, has a good post up on how to add a glass effect to a form in Windows Forms . It's no more complex than a call into dwmapi.dll - although there are some provisos and quid pro quos, natch. It's cool

Radio Buttons on a MenuStrip

Check boxes on menu items are nice, but sometimes you want to display options that are more complex than true/false. How do you display radio buttons on menus? The following sneak preview explains how. This topic will appear in the next documentation update.

ClickOnce Identities: What They Are, Why You Should Care

I haven't written much in the ClickOnce docs about the concept of a ClickOnce identity. Recent support inquiries have shown me that an understanding of this concept can help solve some very confusing problems. What is a ClickOnce Identity ? The identity
Posted by Jay A. Allen | 0 Comments
Filed under:

Control.Location is a Pain - or, Why We Need an OffsetLocation() Method

I'm polishing up some code for a Windows Forms white paper on application layouts in Windows Forms 2.0. The paper will cover advanced uses of the ToolStrip control for creating navigational layouts, among other things. One of the samples is a VS Toolbox-style

ClickOnce and Satellite Assemblies: Use ResourceResolve?

A while back, I wrote about how you can download satellite assemblies on demand in a ClickOnce application. Reader BitFlipper recommended I look into using AppDomain.ResourceResolve() instead, since it was obvious that AppDomain.AssemblyResolve() wasn't
Posted by Jay A. Allen | 1 Comments

Using ToolStrip to Create a Custom Title Bar

Our current documentation on creating nonrectangular forms could stand some enhancement. The most glaring piece of missing info is how to add a custom title bar. The document we do have gives code for how to move the form if the user clicks anywhere in
Posted by Jay A. Allen | 3 Comments
Filed under:

Using TableLayoutPanel to Create DHTML-Style Text Menu

I'm not a big fan of TableLayoutPanel. The control is very limited in what it can do given that the cells created by column/row interactions are not programmatically accessible (unlike in DHTML tables or even in the awesome DataGridView class). However,
 
Page view tracker