C# - Winamp Style 3-Window snapped application

假如想象 提交于 2019-12-07 18:50:01

问题


How can I create a Winamp-Style multiple-form snapped application in C# and .net 2.0?


回答1:


Easy!

  1. Create three forms
  2. Add code to custom-draw everything on those three forms
  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!