简体   繁体   English

如何“停靠” /附加Winforms表单

[英]how to “dock”/attach winforms forms

I'd like to attach two forms within the same app to each other like done by some of the music players such as winamp where the windows can be detached or attached together on one of the sides and after that moving one window movies the other one too ! 我想将同一个应用程序中的两种形式彼此附加在一起,就像某些音乐播放器(例如winamp)所做的那样,在这种情况下,可以将窗户的一侧分离或固定在一起,然后再移动另一部窗户的电影也!

There perhaps is a better term to describe this behavior 也许有一个更好的术语来描述这种行为

any patterns or code samples that do this ? 有任何模式或代码示例可以执行此操作吗?

Have a look at this question 看看这个问题

This is for snapping to desktop edges, but you can probably adapt it to snap to another window... 这是用于捕捉到桌面边缘,但是您可以调整它以捕捉到另一个窗口...

找到了解决方案http://www.codeproject.com/KB/cs/stickywindows.aspx在此处发布给其他人

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM