C#如何使表单点击(很难在一行中解释!) [英] C# How to make a form click-thru-able (hard to explain in one line!)

查看:96
本文介绍了C#如何使表单点击(很难在一行中解释!)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑在C#中创建一个游标替换应用程序。为此,我创建了一个带有PictureBox和Timer的表单。 Timer会将表单的位置与光标坐标同步。表单使用的是TransparencyKey,是TopMost。但是,当我单击任何地方时,表单处理鼠标事件,这意味着除了单击光标之外我无法对计算机执行任何操作(不是很有用) !!)....我怎样才能使点击"通过"形式?

OR! C#中是否有某些方法可以在图像表面之外绘制图像等等?

提前感谢!
- Javawag

解决方案

< BLOCKQUOTE>

-


Hi,

I was considering making a cursor replacement application in C#. To do this i made a form with a PictureBox and a Timer. The Timer would synchronize the form's position to the cursor coordinates. The form was using a TransparencyKey and was TopMost. However, when I click anywhere, the form handles the mouse event, meaning that I can't do anything with the computer other than click on the cursor (not really that useful!!).... how can I make it so that clicks "go through" the form?

OR! Is there some way in C# of drawing images, etc. beyond the form's surface?

Thanks in advance!
- Javawag

解决方案

-


这篇关于C#如何使表单点击(很难在一行中解释!)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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