调整大小/移动参考底图 [英] Resize/Move underlaying form

查看:95
本文介绍了调整大小/移动参考底图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

任何对跟踪有任何建议的人....

我做了一个自定义控件.当我使此控件成为DockStyle = Fill并将我的表单设置为FormBorderStyle = None时,该控件将覆盖整个表单,这就是我想要的.

现在的问题.....

如何调整表单大小/移动?

有什么想法吗?

衷心的问候

Heino

解决方案

如果没有边框,则必须自己编写代码.我可能会在表单上放置某种可视化的提示,告诉用户单击我以移动(或调整)表单的大小".到那时,您还可以只返回表格的边框和标题栏,这样就不必执行等效的编码体操来提供标准的(且用户可识别的)功能. /blockquote>

Hello

Anyone that have any tip about following....

I have made a customcontrol. When i make this controls DockStyle = Fill and set my form to FormBorderStyle = None, the control covers the entire form, and thats what i want.

Now the problem.....

How can i make the form resize/move ?

Any ideas ?

With Kind Regards

Heino

解决方案

If you have no border, you have to code it yourself. I would probably put some sort of visual que on the form that tells the user, "Click me to move (or resize) the form". At that point, you may as well just give the form it''s border and titlebar back so you don''t have to perform the equivalent of coding gymnastics to provide what would otherwise be standard (and user-recognizable) functionality.


这篇关于调整大小/移动参考底图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆