How can I databind to a ToolStripItem?

Unfortunately, the ToolStripItem class itself does not implement databinding features.  However, it is not so hard to add in these features through the magic that is the IBindableComponent interface.  You can now make any component you like implement databinding through the use of this interface.  Here’s a quick sample on how to implement it:    public…

0

December happenings

We have a new PM on our team – Jim Nakashima – he’s got lots of interesting things to say: his older blog was here, and his new blog is here.  The Cider team has published its very first CTP – congrats to Brian, Chuck, Chad, Jim, Subhag et al.  For an intro on the…

1

Profiling

Mike Stall posted some information on the CLR Profiler in 2.0, which reminded me of something I struggled with last week. I wanted to track down a GC Handle leak, I was pretty sure someone was calling GCHandle.Alloc without calling the corresponding Free somewhere.  So I wanted to find a way to log how many…

1

The SuperSecretSideEffect of ResumeLayout(false)

Here’s some really obscure layout information that probably you’ll only need if you’re doing visual inheritance or some fancy MDI goo. One would imagine that this line of code: panel.ResumeLayout() Is equivilant to panel.ResumeLayout(false)panel.PerformLayout() But not so…  imagine I have a button placed in the bottom right hand corner of a panel: button1.Anchor = AnchorStyles.Right |…

0

Full sample – manually handling Overflow

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms; namespace WindowsApplication5 {    public partial class Form1 : Form {        public Form1() {            InitializeComponent();                    }         // —————————–        // How to use this sample:        // Set all of your items to Overflow.Never        // Sync the toolStrip1.LayoutCompleted event and use toolStrip1_LayoutCompleted handler below        // —————————–         //…

0

Fine-tuning control of your ToolStripItem overflow

Customer question: Can I get a ToolStrip to overflow items in reverse order? That is, overflow the leftmost items before overflowing those to the right.  My scenario is to use a ToolStrip much like the address bar in the Vista Explorer: Virtual Folder 1 > Virtual Folder 2 > … Once the ToolStrip is too…

0

How Windows Forms Works – Webcast tomorrow

I’ll be giving a super-basic overview of the anatomy of a Windows Forms application on Tuesday, November 29th at 11AM PST.   I’ll be taking questions at the end – hope to chat with you tomorrow! Register for this webcastMSDN webcasts

0

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 much. I also have some questions for you. Question 1: First, does the DataGridView allow ordering by multiple columns? For example, if I want to order columns first by Name, then by City, then by Locality etc,…

0

DataGridView FAQ now posted

As promised: here’s the link to the DataGridView FAQ.  There’s also a set of demo applications. There are whole bunch more FAQs up on Windows Forms.NET with quite a bit of good info in them.  <shameless ask for plug>Please check the FAQs out if you’re thinking of using Windows Forms 2.0 -if it’s useful, link to it so…

10