问题
How can I create a Winamp-Style multiple-form snapped application in C# and .net 2.0?
回答1:
Easy!
- Create three forms
- Add code to custom-draw everything on those three forms
- Add logic to handle the user clicking and dragging anywhere on any of the forms, such that the window is moved normally until it comes within a certain distance of another one of your own forms (or the edge of the screen), in which case you would snap the window position to that edge.
I look forward to your follow-up questions...
回答2:
this works perfect for Windows Forms http://www.codeproject.com/KB/cs/stickywindows.aspx
来源:https://stackoverflow.com/questions/993306/c-sharp-winamp-style-3-window-snapped-application