Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Form and Application Classes   (RSS)

New White Paper: Creating Smart Application Layouts in Windows Forms 2.0

My new Windows Forms white paper is now available on MSDN . It covers using ToolStrip as a navigation alternative to TabControl, and creating collapsible flyout menus a la the Visual Studio Toolbox. Compilable code samples are included. Enjoy!

Adding Custom My.Application Methods to C# Windows Forms Applications

In my last entry, I talked about how I loved extending My.Application in VB to create global methods available to my entire application. A reader mentioned that you can get much of the default functionality associated with the My class by using That .

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

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

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

Boneheaded .NET Error of the Day

[Can I say "boneheaded" on MSDN? If this post disappears in an hour, you'll know I've received an email from HR...] As a Programmer/Writer for Windows Forms, I develop code examples in both C# and Visual Basic.NET. Today, I was finishing up a code example

Calling Validate() and ValidateChildren() from Validating and Validated Events

Don't do it - it won't work. Both methods will automatically return false, in order to prevent infinite recursion from unskillful implementation of the event handlers. I've added a note about this to the relevant sections of the docs. Mind you, I'm not

Application.ThreadException sample now works!

Several customers have pointed out to me that the sample for the ThreadException event doesn't even compile, let alone work. Similarly, the topic containing it never clearly differentiated between exceptions on Windows Forms threads (which are handled

SetCompatibleTextRenderingDefault

There were several changes in Windows Forms for .NET Framework 2.0 that came down the pipe too late for us to document in time for RTM. Once of these was the SetCompatibleTextRenderingDefault() method on System.Windows.Forms.Application. I've since documented
 
Page view tracker