创建一个新的窗体,并在上面添加三个文本框,以及一个标签和两个按钮,界面看起来如图1。
Create a new form and add three text boxes with labels and two buttons to the form so that it looks something similar to Figure 1.
可以通过仅将单行代码添加到窗体的Load事件并使用DataSet填充DataAdapter来完成简单的Windows应用程序。
You can complete the simple windows application by just adding a single line of code to the Load event of the form to fill the DataAdapter using the DataSet.
如果模型需要定义一个关系(例如,Project需要选中所有的Organization),就需要手工修改页面将这个域添加到窗体上。
If the model requires a relationship to be defined (for example, the Project requires the owning Organization to be selected), you will need to modify the page by hand to add that field to 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.
该拖放(drag-and-drop)操作将自动生成所需的 ADO.NET连接、命令和数据适配器对象,并将其添加到窗体的组件托盘上。
The drag-and-drop operation will automatically generate the required ADO.NET connection, command, and data adapter objects and add them to the form's component tray.
就本例而言,我发现只须添加一个窗体,将它删除,然后强制执行垃圾收集,结果就会导致与被删除窗体相关联的许多类实例仍然处于活动状态。
For this example, I found that simply adding a form, deleting the form, and then forcing a garbage collection resulted in many class instances associated with the deleted form to still be alive.
随后,我添加了四个窗体,然后又将它们删除,并再次调用了垃圾收集器。
Next, I added, then deleted four forms and again invoked the garbage collector.
扩展Person文档计划的子窗体显示了为每个用户添加的设置(参见图7)。
A subform that extends the Person document schema displays the Settings that are added for each user (see figure 7).
如果您将属性值添加到窗体及其控件的属性表,则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.
您必须手动添加用户界面控件,在它上面设置绑定,生成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需要在幕后于窗体中添加一些额外的代码来支持窗体本地化。
Visual Studio is required to add some extra code into the form behind the scenes to support form localization.
提交此项目时,第二个脚本——也就是第一个脚本所显示的窗体的目的地——将数据写入blog,并显示确认项目添加完毕的屏幕。
When we submit this entry the second script, which is the destination for the form on the first, writes the data to the blog and puts up a screen to verify that the item has been added.
现在把Command按钮添加到窗体中,如图21所示。
通过使用图形用户界面,用户可以创建窗体,向窗体中添加控件,然后连接这些控件的事件来创建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.
改进了可视化设计,Calendar窗体更加整洁,并且为Calendar视图添加了一个导航器,包括组日历和委托日历。
The visual design is improved, the calendar form is cleaner, and a navigator has been added for the calendar views, including group calendars and delegated calendars.
该窗体将被流化为Delphi .pas源文件和 .xfm 窗体文件;并准备将它们添加至Kylix或DelphiCLX项目中。
One that will be streamed out - as both a Delphi .pas source file and an .xfm form file; ready to be added to a Kylix or Delphi CLX project.
作为一点小小的一个提示,我建议在NewForm中将这些按钮添加至框架窗体,因此,您所做的修改将用于所有新生成的窗体中。
As a little hint, I would suggest adding these buttons to the skeleton form in NewForm, so the changes that you make will be used in all newly generated forms.
该窗体与初始的框架窗体一样,只是添加了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.
特别是,VisualStudio需要添加代码来加载正确的本地化资源,并将它们的值分配给窗体和控件属性。
In particular, Visual Studio adds code to load the correct localized resources and assign their values to form and control properties.
新建窗体并添加输入参数所需的控件。
Create a new form and add the controls needed for entering the parameters.
随着您添加查询、窗体和报表,它会变得更易于使用。
As you add queries, forms, and reports, it becomes easier to use.
拖到绘图页后,可以为简单任务(通常3步或更少)添加向导窗体。
Drag onto the page to add a wizard form for simple tasks (usually 3 steps or less).
不能将窗体标记作为嵌套窗体进行添加;指定位置位于另一窗体元素中。
You cannot add a form tag as a nested form; the specified location is within another form element.
通过在该工作项窗体的“实现”选项卡上添加这些任务来完成此操作。
This is accomplished by adding the tasks on the Implementation TAB of the work item form.
只需使用光标选择控件并将控件添加到窗体上所需的位置即可。
Just select the controls with your cursor and add them where you want on the form.
如果数据源是数据集或基于数据集表的数据视图,请向窗体添加代码来填充数据集。
If the data source is a dataset or a data view based on a dataset table, add code to the form to fill the dataset.
创建一个新窗体并且添加到项目。
使您能向窗体添加控件,排列这些控件,并针对这些控件的事件编写代码。
Enables you to add controls to a form, arrange them, and write code for their events.
描述如何添加和移除窗体上的任何容器控件中的控件。
Describes how to add controls to and remove controls from any container control on your forms.
选择将显示工具提示的控件,或将其添加到窗体。
Select the control that will display the ToolTip, or add it to the form.
应用推荐