Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
adventures in windows forms and wpf
A new way of saying IsInputKey: PreviewKeyDown
A year ago, I diagramed the maze that is Windows Forms keyboard handling. There are some new helper...
Author: jfoscoding Date: 01/26/2006
How do I get keyboard access to my ToolStripButton?
I've gotten this question a couple times so I thought I'd share. If you want to allow keyboard...
Author: jfoscoding Date: 01/25/2006
I admit it, I'm a fair weather fan
If you know anything about Seattle, then you'll know it's been raining quite a bit this winter...
Author: jfoscoding Date: 01/23/2006
More on "Avalon" RichTextBox
As promised, I learned more so I'm sharing. Last time I figured out how to stuff plain text into the...
Author: jfoscoding Date: 01/16/2006
Billy Hollis on the history of languages...
I had the pleasure of meeting Billy Hollis recently. He has an amusing history of BASIC languages...
Author: jfoscoding Date: 01/16/2006
Some tricks for working with WPF’s RichTextBox
I’ve been playing around with the RichTextBox, and as Richard points out, the free spell checking on...
Author: jfoscoding Date: 01/14/2006
Sheesh, now Mark is blogging too?!
Mark Rideout, PM on the Windows Forms team has started blogging, and has some great nuggets of...
Author: jfoscoding Date: 01/12/2006
Jim and Windows Media Visualizers in WPF
Jim Galasyn never ceases to amaze me with what he's up to. It seems this week it's writing...
Author: jfoscoding Date: 01/12/2006
Looking forward to two things...
Watching the new season of BSG and reading Charles Petzold's latest book on Windows Forms.
Author: jfoscoding Date: 01/07/2006
Richard is blogging
Richard Bailey, fellow Cider dev, is blogging... ...and starts off by letting us all know how to put...
Author: jfoscoding Date: 01/06/2006
How can I databind to a ToolStripItem?
Unfortunately, the ToolStripItem class itself does not implement databinding features. However, it...
Author: jfoscoding Date: 12/23/2005
December happenings
We have a new PM on our team - Jim Nakashima - he’s got lots of interesting things to say: his older...
Author: jfoscoding Date: 12/20/2005
Profiling
Mike Stall posted some information on the CLR Profiler in 2.0, which reminded me of something I...
Author: jfoscoding Date: 12/17/2005
The SuperSecretSideEffect of ResumeLayout(false)
Here's some really obscure layout information that probably you'll only need if you're doing visual...
Author: jfoscoding Date: 12/16/2005
Saving/Restoring form's last known location and position
Ragha has posted a nice article of how to use the new Settings APIs to save off the last known...
Author: jfoscoding Date: 12/09/2005
Full sample - manually handling Overflow
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using...
Author: jfoscoding Date: 12/01/2005
Fine-tuning control of your ToolStripItem overflow
Customer question: Can I get a ToolStrip to overflow items in reverse order? That is, overflow the...
Author: jfoscoding Date: 12/01/2005
How Windows Forms Works - Webcast tomorrow
I'll be giving a super-basic overview of the anatomy of a Windows Forms application on Tuesday,...
Author: jfoscoding Date: 11/28/2005
Guest post: response from Regis on DGV questions
Hi jfo, I downloaded the samples and the FAQ document. This grid is really cool. Thank you very...
Author: jfoscoding Date: 11/17/2005
DataGridView FAQ now posted
As promised: here's the link to the DataGridView FAQ. There's also a set of demo applications. There...
Author: jfoscoding Date: 11/16/2005
Visual Studio Image Library
A customer from Las Vegas DevConnections asks: It seems like, but I may be mistaken, that you said...
Author: jfoscoding Date: 11/15/2005
Brief intro to GetPreferredSize / WrappingRadioButton and CheckBox sample
Here's a brief intro to GetPreferredSize and how you can build an AutoSized RadioButton and CheckBox...
Author: jfoscoding Date: 11/14/2005
AutoSized, Wrapping RadioButton and CheckBox (VB)
The following RadioButton and CheckBox automatically text wrap when placed in a TableLayoutPanel or...
Author: jfoscoding Date: 11/14/2005
AutoSized, Wrapping RadioButton and CheckBox (C#)
The following RadioButton and CheckBox will text-wrap when placed in a TableLayoutPanel or...
Author: jfoscoding Date: 11/14/2005
Getting started with Windows Forms 2.0
Here's a great set of stuff to get you started using some of the new controls/features in Windows...
Author: jfoscoding Date: 11/11/2005
New sample: SplitButton
Now that the toolstrip has a split button, everyone seems to want one for their form too. While you...
Author: jfoscoding Date: 11/10/2005
Building a SplitButton
The following sample creates a split button that you can use on your form. It makes use of the...
Author: jfoscoding Date: 11/10/2005
Namedropping
I'm not usually one for namedropping, however when I was in Vegas I met a whole bunch of folks doing...
Author: jfoscoding Date: 11/10/2005
Formatting XML and other stuff in VS
Customer question from DevConnections conference: I have XML that spits out into one line in a text...
Author: jfoscoding Date: 11/10/2005
Tan color table
The following sample provides a Tan alternative to the stock ToolStrip ColorTable. You can use it...
Author: jfoscoding Date: 11/06/2005
Going from Blue to Tan
Brett asks: During the PDC we chatted about how to make the toolbar have the same look and feel that...
Author: jfoscoding Date: 11/06/2005
Off to Vegas to talk about The Strips...
...yup ToolStrip, StatusStrip, MenuStrip, ContextMenuStrip - as well as DataGridView,...
Author: jfoscoding Date: 11/04/2005
Using BackgroundWorker Effectively
If you are not familiar with the BackgroundWorker, it is a newly released component within Windows...
Author: jfoscoding Date: 10/30/2005
Office feedback
I've been following Crabby Office Lady, and this week she has links to sending in feedback/product...
Author: jfoscoding Date: 10/21/2005
Notify applications where the form disappears from the taskbar on minimize
Jim asks: "I've been following your Windows Forms articles, and was hoping that you could post about...
Author: jfoscoding Date: 10/20/2005
Figuring out AutoSized, Word-Wrapping Labels
Don't rip out your hair on this one, try reading the answer to this frequently asked question...
Author: jfoscoding Date: 10/17/2005
New samples: TLP ToolStrip, TrackBar for ToolStrip and Readonly Controls
Here's three new samples I whipped up recently - hope you find them interesting/useful! Creating...
Author: jfoscoding Date: 10/14/2005
Using TableLayout in ToolStrip in the Designer
The following sample creates an extender provider for toolstrip which adds the properties/methods...
Author: jfoscoding Date: 10/14/2005
Creating readonly controls - ComboBox, etc.
The following panel makes any control within it read-only (e.g. unresponsive to clicks/keyboard...
Author: jfoscoding Date: 10/13/2005
UseCompatibleTextRendering - Compatible with whaaaaaat?
There seems to be quite a bit of confusion around this little old flag that has cropped up in VS...
Author: jfoscoding Date: 10/13/2005
How do I get text to wrap in Windows Forms 2.0?
The fundamental problem in 1.1 When label is set to AutoSize = true, it measures as if all the text...
Author: jfoscoding Date: 10/07/2005
Creating a strongly-typed wrapper for your ToolStripControlHost
The following sample shows how to wrap a TrackBar by inheriting from ToolStripControlHost. It is...
Author: jfoscoding Date: 10/05/2005
How can I add commanding to my application?
<Sample coming! Please check back!>
Author: jfoscoding Date: 10/04/2005
Creating a Name property on your component
Say you're creating a simple component with a property called Name.... namespace...
Author: jfoscoding Date: 10/04/2005
Five bullet points you might not see on the back of the box
Coming in to work today, I was thinking of small improvements that make everyone's life just a...
Author: jfoscoding Date: 10/03/2005
Showing a form without activating
Went to the MVP summit this evening - it was great to see everyone. I got a question from Tim about...
Author: jfoscoding Date: 09/29/2005
Customer questions / whidbey sample code
Here is a collection of samples I've written in the past few days to answer your questions from the...
Author: jfoscoding Date: 09/29/2005
How can I implement IDeviceContext?
The VisualStyleRenderer APIs take an IDeviceContext, for which you can normally pass a graphics...
Author: jfoscoding Date: 09/29/2005
How do I use Table layout with ToolStrip?
Here's a super-quick sample of using TableLayout inside of toolstrip. The code below creates a grid...
Author: jfoscoding Date: 09/29/2005