制作星形或圆形登录表单 [英] making star or circle shaped login form

查看:83
本文介绍了制作星形或圆形登录表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何制作星形或圆形或其他形状的登录表单

how i can make star or circle or in some other shape login forms

推荐答案

尝试一下,

http://www.mredkj.com/vbnet/CreateCircleForm.html [
Try this,

http://www.mredkj.com/vbnet/CreateCircleForm.html[^]

Hope it helps.


这实际上非常简单:使用属性System.Windows.Forms.Form.Region.创建一些非矩形区域,并将值分配给此属性.请参阅:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.region.aspx [ ^ ].

请注意,该表格的非客户区域将被剪切掉,因此请确保不要使用它们.如果您需要标题栏进行拖动,关闭按钮等操作,请在客户端区域的可见部分内进行模拟.

注意避免使用错误的建议,如拉杰夫(Rajeev)所引用的建议.该建议难以实施,并且不会给您期望的结果:该表格将保持非矩形.当您使用我的建议时,它实际上是非矩形的,使用鼠标单击即可轻松验证.假设您有一个内部有孔的表格.在孔内单击,将激活下面的窗口.

—SA
This is actually very simple to do: use the property System.Windows.Forms.Form.Region. Create some non-rectangular region and assign the value to this property. Please see:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.region.aspx[^].

Please be advised that non-client areas of the form will be cut out, so make sure you don''t use them. If you need something like a title bar for dragging, close button, etc., simulate then inside a visible part of client area.

Be careful to avoid using wrong advice like the one quoted by Rajeev. This advice is difficult to implement and it won''t give you desired result: the form will remain non-rectangular. When you use my advice, it is truly non-rectangular, which is easy to validate using mouse clicks. Suppose you have a form with a hole inside. Click inside the hole, and the window underneath will be activated.

—SA


这篇关于制作星形或圆形登录表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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