Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
232 views
in Technique[技术] by (71.8m points)

c# - 选定区域的Tab键顺序(Tab Order With Selected Area)

During Design Time of a Windows Form there are a lot of controls to assign their Tab Order with VS Tab Order Button automatically (by clicking each control sequantially).

(在Windows窗体的设计时间中,有许多控件可以通过VS Tab Order Button自动分配它们的Tab Order(通过依次单击每个控件)。)

Is there a way to select a Specific Area in form (contaning limited count of controls to be tab ordered).

(有没有一种方法可以选择表单中的特定区域(包含有限数量的控件,需要使用Tab键排序)。)

Otherwise Tab Order button selects all controls in the form (Labels have no Tab Order although) and it is very diffucult to see clearly related control to click.

(否则,按Tab键排序按钮会选择表单中的所有控件(尽管标签没有按Tab键排序),并且很难清楚地看到要单击的相关控件。)

  ask by BirSoft translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

No the designer doesn't have such feature, however, if you have such requirement, you can create some user controls and then setup the tab indexes in designer of each user control.

(没有设计器没有这种功能,但是,如果您有这样的要求,则可以创建一些用户控件,然后在每个用户控件的设计器中设置选项卡索引。)

This way you decide about the tab indexes of the user control in the designer of the user control and the tab indexes of the user controls will be part of the user control definition and will be reused in different forms.

(这样,您可以在用户控件的设计者中确定用户控件的选项卡索引,并且用户控件的选项卡索引将成为用户控件定义的一部分,并将以不同的形式重复使用。)

Also since the user control is a container control, at the designer of the form, you need to just specify the tab index for the user controls.

(另外,由于用户控件是容器控件,因此在表单设计者中,您只需为用户控件指定选项卡索引。)

Also you will see less controls to assign tab index.

(此外,您将看到较少的控件来分配选项卡索引。)

在此处输入图片说明


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...