Click to See Complete Forum and Search --> : Borderless Form
lnelsestuen
Mar 13th, 2001, 09:33 AM
I have a borderless form that can be moved and resized like a regular bordered window (using SnedMessage), but I cannot get the system to display the resize cursor when over the PictureBoxes I use for borders without setting and resetting them myself. I've tried using SendMessage with a wMsg of WM_NCMOUSEMOVE, but can't get it to work.
Lord Orwell
Mar 14th, 2001, 02:03 AM
Have you tried just setting the MousePointer property of the picture boxes to the mouse pointer you want? That is what it is there for.
lnelsestuen
Mar 15th, 2001, 06:31 AM
I could do that, but I was hoping there was a way to use SendMessage API so I wouldn't have to worry about resetting the MousePointer when it wasn't over my borders.
lnelsestuen
Mar 15th, 2001, 06:34 AM
I also have it so that if you are within 10 pixels of the top or bottom, it will resize it accordingly, ie, if you are within 10 pixels from the top on the left border, it will resize it TopLeft, within 10 pixels from the bottom of the left border, it will resize it BottomLeft, etc.
Lord Orwell
Mar 15th, 2001, 07:07 PM
you wouldn't have to set it back. It returns to normal automatically.
lnelsestuen
Mar 16th, 2001, 07:36 AM
Yes, but I was hoping there was a way I could display the TopLeft, BottomLeft, etc resizae cursors also without just having Left, Right, Top and Bottom.
See this link (http://forums.vb-world.net/showthread.php?s=&threadid=61300)
lnelsestuen
Mar 19th, 2001, 09:44 AM
Lord Orwell
It's not exactly what I was hoping to find, but it does work just fine. I hate it when I overlook the easy answer.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.