Is there a way to create the effect that I have seen many programs do invloving a gray rectangle? When you drag the corner/side of something to resize it, you see a gray outline of where it WOULD be resized to if you left go of the mouse button.

The reason I ask is because I have an MDI form with a control aligned to one side that I want to make resizable. I added a very narrow picture box aligned to the same side the creates the effect of a re-size bar. The problem is the form flickers a lot when I resize it. I was wondering if there was a way to draw this rectangle ontop of all other windows to show where the control would be resized to if you left go of the mouse button. Any ideas?