Click to See Complete Forum and Search --> : Window Snap


January 24th, 2000, 02:35 AM
Is there an API call or something that I can use in VB 6 to get a window to snap to the screen edge (like Winamp does). I figure if I subclass the window and watch for it to approach a certain distance away from any screen edge, I need to do something. What that is, I don't know. If I try to manually place the form, it gets confused and moves back and forth between the current location of the mouse and the new location. Perhaps I need to move the cursor too. Any ideas?

Chris Eastwood
January 24th, 2000, 09:53 AM
Take a look at this post

http://codeguru.developer.com/bbs/wt/showpost.pl?Board=vb&Number=7878&Search=true&Forum=vb&Words=appbar&Match=Whole&Topic=&Searchpage=0&Limit=25

The file / class that it points to allows your form to behave in the same manner as the windows taskbar.


Chris Eastwood

CodeGuru - the website for developers
http://codeguru.developer.com/vb