-
I have a form that is visible nearly all the time and is a very small window. I would like to be able to make the window dockable similar to the way WinAmp does it. So that when being moved, if the form is near the edge of the screen it will jump so that it is lined up. Any suggestions would be appreciated very much,
Thanks
Raymond
-
Sorry, I don't know how to make it lign up with the edge of the screen, but if you want to add another winamp feature (that is, when one window is moved all the others move along with it) you can do that by saying form2.left = form1.left + form1.width and by replacing left with tops for up and down... this is a nice feature and is easy to code in. Also, I just thought of a way to do the snap thing... something like an if form1.left <= 15 and then a form1.left = 0.. that would make it so that if it's within 15 of the left side it would auto jump to it... don't know how to do it for the right side. The trick is gonna be putting is in the correct sub... I can't remember which it is for movement. This probably isn't what you're looking for but I figured I'd post just in case.