The resizing grip in the corner of a window is called a shangle (supposedly a combination of shingle and triangle).
This code is a sample of how to create your own.
I have used a couple of labels to draw the graphic for the shangle, but I guess you could another control and have a shangle of any size/color/design you wanted, perhaps the nifty XP one with dots instead of diagonal lines. Code could also be modified to put the shangel somewhere other than in the corner. A pull-down handle perhaps, or at the bottom left, for RightToLeft forms.
Code is a bit of a cludge (hate that timer for instance) and I'm sure somebody with more time than me can easily improve it.
Mail me if you post a better one and I'll delete this post.
Here's module1.bas
VB Code:
Option Explicit
Declare Function ReleaseCapture Lib "user32" () As Long
Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Const WM_NCLBUTTONDOWN = &HA1
Public Const HTBOTTOMRIGHT = 17
Sub DriveShangle(f As Form)
'PURPOSE: Negate VB's call to SetCapture, and tell Windows
I grant you the code is tidier and mine is a kludge thrown together in a hurry as I said, but:
1) The shangle does not disappear when you maximize the form.
2) The code resides on the form itself, so if you have a lot of forms you repeat the code over and over.
3) Why is the grip 'more realistic'? Looks pretty much the same to me - although you can have any grip you like in either set of code with a few trivial alterations.
What it really needs is somebody with a bit of time to write a drop-in control.
Brian
(Fighting with the RightToLeft bugs in VS 2005)