现在,当我调整窗体控件对齐到左和其他文本框右侧。
Now when I resize the form the controls are aligned to left and the other textbox to right.
这种组合在开始时和用户在记录间移动时填充窗体控件。
This combination fills the form controls initially and as the user moves from record to record.
本文所讨论内容:关于Windows窗体控件的新内容。
在窗体控件与关联的记录集对象之间提供对话框数据交换 (DDX)。
Provide dialog data exchange (DDX) between the form controls and the associated recordset object.
您可以通过在数据库或项目上设置选项来防止窗体控件继承操作系统中的主题。
You can prevent form controls from inheriting themes from the operating system by setting an option on the database or project.
然后,这个控件将魔术般地出现在窗体上,供用户使用。
The control will then magically appear on your form, ready for use.
用另外一个更合适的控件来完全替换当前控件可不容易,你需要删除这个控件,然后将一个新控件拖入窗体并重新配置它。
Completely replacing one control with another more relevant control is not as simple; you will need to delete an existing control, drop a new one on the form, and reconfigure it.
您可将数据源拖放到应用程序中的一个窗体中,这将自动在窗体中创建默认用户界面控件并生成所有必需的代码。
You can drag and drop the data source onto a form in the application, which automatically creates a default user interface control in the form and generates all the necessary code.
只需将瞄准镜拖拽到运行的窗体上,你就能够看到那些控件具有的属性和事件。
By merely dragging the crosshair onto a running form, you can see all the properties and events for the given control.
你能在窗体上随意拖放这些控件,也可以像调整其它的控件一样调整它们。
You can drag the controls around and modify them just like any other control.
当你在窗体中设置好了所有的控件,并编写了使它们共同工作的代码,你将要部署此应用程序。
When you finally have all the controls you need on your forms and the code needed to make them work together, you'll have an application that you still need to deploy.
此外,再将数据网格控件拖放到窗体中。
Additionally, a data grid control is also dragged and dropped onto the form.
这种方法需要你手动将一系列适当的控件分区域地添加到窗体中,例如标签和文本框,结果就像Figure6显示的那样。
This approach requires you to add fields to the form manually as a set of appropriate controls, such as Labels and TextBoxes, resulting in something that looks like Figure 6.
请注意,这里还有一个附加的按钮,在这里,将用它在新的CLX窗体上从该tabsheet重新创建这些控件。
Note that there's an additional button here that will be used to recreate the controls from this tabsheet on a new CLX form.
令人惊讶的是,即使Windows窗体不了解有关该控件的任何信息,它也能够承载它并让您操纵它的属性。
Amazingly, Windows Forms knows nothing about the control, yet it's able to host it and let you manipulate its properties.
QuickReservation窗体中需要改动的设置更少,并且没有普通预订请求拥有的可用性搜索控件,因此其载入速度更快。
The Quick Reservation form has fewer settings to change, and has no availability searching controls that the normal reservation request does, so it loads faster.
通过使用图形用户界面,用户可以创建窗体,向窗体中添加控件,然后连接这些控件的事件来创建Palm应用程序。
By using a graphical interface, the user could create forms, populate them with controls, and then wire events from these controls to create the Palm application.
如果您将属性值添加到窗体及其控件的属性表,则VisualStudio会在幕后于一个已编译为非特定程序集的资源文件中维护它们。
As you add property values into the property sheet for the form and its controls, Visual Studio maintains them in a resource file behind the scenes that is compiled into the neutral assembly.
特别是,VisualStudio需要添加代码来加载正确的本地化资源,并将它们的值分配给窗体和控件属性。
In particular, Visual Studio adds code to load the correct localized resources and assign their values to form and control properties.
创建表示应用程序窗体类型的Type对象之后,我使用Type .GetField方法检索Form对象中指定字段(控件)的信息。
After creating a type object that represents the application form's type, I retrieve information about a specified field (a control) on the form object by using the Type.GetField method.
您必须手动添加用户界面控件,在它上面设置绑定,生成DataSet,还需要将代码添加到窗体的Load事件,以便利用DataSet填充数据适配器。
You had to manually add the user interface control, set the binding on it, generate the DataSet, and also add the code to the Load event of the form to fill the data adapter with the DataSet.
当您需要本地化特定于窗体的字符串以及窗体所包含的控件时,VisualStudio 2005会提供某些额外的帮助。
Visual Studio 2005 provides some extra assistance when you need to localize strings specific to a form and the controls it contains.
集成开发环境的另一项改进是VisualStudio 2005中的Windows窗体提供了新的控件,并改进了广受欢迎的旧控件例如文本框和复合列表框。
In addition to the IDE improvements, Windows Forms in Visual Studio 2005 offers new controls as well as improvements to old favorites such as the TextBox and ComboBox.
这个控件将在你的窗体上放置一个Systems . Windows . Forms .Timer类的实例。
This control will place an instance of the System.Windows.Forms.Timer class on your form.
仅当目标是Windows窗体设计器时才使用Windows窗体页上的定时器控件。
Use the timer control that is located under the Windows Forms tab only if the target is a Windows Forms designer.
该窗体与初始的框架窗体一样,只是添加了TLabel、TDBImage和TDBEdit控件,事实上,Height已经被修改,以显示所有控件。
This form is the same as the original skeleton form, with the addition of the TLabel, TDBImage, and TDBEdit controls, and the fact that the Height has been changed to display all controls.
在使用其中某个工具时,窗体上的控件继承基础表属性,其中包括所有有效性规则和有效性文本。
When you use one of those tools, the controls on the form inherit the underlying table properties, including any validation rules and validation text.
不过,模板不在新窗体或新报表上创建控件。
However, a template doesn't create controls on a new form or report.
不过,模板不在新窗体或新报表上创建控件。
However, a template doesn't create controls on a new form or report.
应用推荐