的WinForms:是否有标签与文本框相关联的一个概念? [英] WinForms: Is there a concept of associating a label with a textbox?

查看:85
本文介绍了的WinForms:是否有标签与文本框相关联的一个概念?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2010中使用C#。有没有在Windows中的一个概念形式在某种程度上与链接是文本框的标签发展?东西让他们一起移动作为一个单位?在ASP.NET的世界,还有就是标签控件的AssociatedControlId财产。我也觉得我记得有关联(或链接)标签与对照组的某种方式的MS Access窗体设计器。此功能,即使在Visual Studio世界上存在?

I'm using Visual Studio 2010 with C#. Is there a concept in Windows Forms development of somehow linking a label with is text box? Something so that they move together as a unit? In the ASP.NET world, there is the AssociatedControlId property of the label control. I also think I remember MS Access form designer having some way of associating (or linking) labels with controls. Does this feature even exist in Visual Studio world?

如果没有,你怎么与对照组标签,这样如果你移动一个文本框,您不必手动?也移动标签

If not, how do you group labels with controls such that if you move a text box you don't have to manually move the label also?

推荐答案

没有没有 - 至少在开箱控件。如果你想要这个,你可以用一个用户控件实现它。

No there is not - at least with the out of the box controls. If you want this you could achieve it with a user control.

在一般的WinForms未行驱动以相同的方式作为HTML是。

In general the winforms is not line driven in the same way as HTML is.

这篇关于的WinForms:是否有标签与文本框相关联的一个概念?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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