I'm afraid not
There is an updated article on CodePlex
http://www.codeplex.com/Wiki/View.aspx?ProjectName=CustomerBorderForm
What you basically need to do is override the default handling of the Non
Client messages (NC_xxx) by overriding WndProc in your child form and
route
some messages to your own code.
const int WM_SETTEXT = 0x000c;
const int WM_NCCALCSIZE = 0x0083;
const int WM_NCPAINT = 0x0085;
protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case WM_SETTEXT:
WmSetText(ref m);
break;
case WM_NCCALCSIZE:
WmNCCalcSize(ref m);
break;
case WM_NCPAINT:
WmNCPaint(ref m);
break;
default:
base.WndProc(ref m);
break;
}
}
You change the size in WmNCCalcSize, draw the border and caption in
WmNCPaint and the caption text in WmSetText. If you just want to change
the
size, you still need to do the drawing since the border is a set of images
that may not fit the new size. The rest of the messages can probably
safely
be ignored and left to Windows to handle.
If you haven't already I suggest you download or view the source code
(Source Code tab above the article).