如何在vb.net中移动圆整形 [英] how to move round shap in vb.net

查看:70
本文介绍了如何在vb.net中移动圆整形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用vb.net表单,并且我拥有(汽车控制面板表单)
在此表格上,我有方向盘,如果用户按方向盘的左侧,它将产生[[? — SA]向左半圈
西班牙圈子的代码是什么????

I am using vb.net forms and i have (car control panel form)
on this form I have steering wheel if the user press on the left of the steering it will spains [? — SA] half circle to the left
what is the code of spains circles????

推荐答案

创建非矩形形式或任何其他基于System.Windows.Forms.Control的类型很容易.您应该创建System.Drawing.Region的一些非矩形实例,并将其分配给所需窗体或其他控件的属性System.Windows.Forms.Control.Region.

请参阅:
http://msdn.microsoft.com/en-us/library/system.drawing. region.aspx [^ ],
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.region.aspx [ ^ ].

一个问题是无法显示表单的非客户端部分,例如标题栏,应用程序图标区域,边框,关闭按钮等.一种方法是使用客户端区域中的常规控件来模仿此类元素. >
—SA
Creation of non-rectangular form or any other System.Windows.Forms.Control based type is easy. You should create some non-rectangular instance of System.Drawing.Region and assign it to the property System.Windows.Forms.Control.Region of the form or other control you need.

Please see:
http://msdn.microsoft.com/en-us/library/system.drawing.region.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.region.aspx[^].

One problem is that the non-client part of the form cannot be shown, such as title bar, application icon area, borders, close button, etc. One approach is to emulate such elements using regular controls in the client area.

—SA


这篇关于如何在vb.net中移动圆整形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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