检测SplitContainer的选择面板 [英] Detect SplitContainer's select Panel

查看:53
本文介绍了检测SplitContainer的选择面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有Windows Form名为  Form1  和
in I有动态  SplitContainer   named  splitcontainer



我想知道在运行时单击鼠标时选择了哪个面板。

我尝试使用  mouseclick   event
但是我还没有成功

解决方案

你试过吗?为每个面板单独处理
MouseClick ?在添加处理程序之前单击表单设计器中的面板。



I have Windows Form named Form1 and inside I have a dynamic SplitContainer named splitcontainer.

I want to know which panel is selected when the mouse is clicked at runtime.
I tried to use mouseclick event in the splitContainer properties but I haven't succeed

解决方案

Have you tried to handle MouseClick for each panel individually? Click the panel in Form Designer before adding the handler.


这篇关于检测SplitContainer的选择面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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