如何选择多个控件 [英] How to select multiple controls

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

问题描述

我需要能够在按下控制键并用鼠标单击该控件的同时选择多个控件,这与大多数Windows程序的工作方式非常相似,但我不清楚如何实现此功能

在我的程序中,我有7个文本框和一个数据网格.我需要允许用户使用鼠标来选择单个控件,并且菜单中还具有一个选择按钮来做同样的事情

谢谢

I need to be able to select multiple controls while the control key is pressed and the control is clicked with the mouse much in the way most windows programs work but i''m unclear on how to make this work

in my program i have 7 textboxes and a datagrid. I need to be able to allow the user to select individual controls using the mouse and also have a select button in a menu to do the same thing

Thanks

推荐答案

没有选择多个控件作为运行时对象的控件.在运行时不需要它.控件根本没有被选择,但是它们是集中的.但是,在Designer中使用了控件的选择,但是在Designer控件下,行为并不像真实"控件那样,因此实现了特殊的设计时行为.控件扮演着要使用图形样式编程进行修改的图形对象的角色.但是在Designer下,已经实现了多个控件的选择.

(另请参阅我对问题的评论.)

—SA
Selection of multiple control does not exist for controls as run-time objects. It is not needed during run time. Controls are not selected at all, but they are focused. However, selection of the controls is used in the Designer, but under Designer controls do not behave like "real" controls, a special design-time behavior is implemented; the controls play the role of graphical objects to be modified using graphical-style programming. But under Designer, selection of multiple controls is already implemented.

(See also my comment to the question.)

—SA


这篇关于如何选择多个控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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