窗体申请表 [英] window form application

查看:68
本文介绍了窗体申请表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们在该矩形上拖动另一个矩形时,我想更改矩形的颜色。



应该在鼠标注册事件中完成。



与visual studio相同,当我们在控件上拖动一个矩形时,所有控件都会被选中。



怎么办?



请给出建议。

解决方案

阅读本文:在Windows窗体中执行拖放操作 [ ^ ],然后将代码更改为需求。

I want to change the color of rectangle, when we drag another rectangle over that rectangle.

It should be done on mouse up event.

Same as in visual studio, there when we drag a rectangle over the controls on form the all controls getting selected.

What to do ?

Please give suggestion.

解决方案

Read this: Performing Drag and Drop Operations in Windows Forms[^], then change the code to your needs.


这篇关于窗体申请表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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