如何让透明图片框点击通过?
我想让表单中的图片框透明并点击。
在上图中,黄色区域是图片框,红色区域是表单。表单区域应该是透明的,但不能点击。图片框应该是透明的并且可以点击。我怎样才能做到这一点?我正在 VB.net (VS2010,.NET 4) 中做我的项目
I want to make the picture-box in a form to be transparent and click through.
In the above image, yellow areas are the picture-boxes and Red area is the form. Form area should be transparent but not click through. Picture-boxes should be transparent and click-through. How can I achieve this ? I am doing my project in VB.net (VS2010,.NET 4)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基本上,您需要使表单的背景不可见,而图片框则可见。如果我是对的,您可以使用以下代码使表单的背景不可见:
现在您可以为图片框或“红色区域”的单击事件添加代码以使其单击。
Basically you need to make the background of your form invisible where as picture boxes to be visible. If I am right you can use the following code to make the background of the form invisible:
Now you can add code for the click events of the picture boxes or the "Red Area" to make it click through.