用另外一个更合适的控件来完全替换当前控件可不容易,你需要删除这个控件,然后将一个新控件拖入窗体并重新配置它。
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.
请注意,这里还有一个附加的按钮,在这里,将用它在新的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.
如果您将属性值添加到窗体及其控件的属性表,则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.
这个控件将在你的窗体上放置一个Systems . Windows . Forms .Timer类的实例。
This control will place an instance of the System.Windows.Forms.Timer class on your form.
下面的过程演示了如何将窗体布局成为一个查找表,并将数据绑定到它上面的控件。
The procedures below show you how to lay out your form as a lookup table and bind data to the controls on it.
这类情况的一个示例是:某个控件被用户界面中的另一个控件或窗体部分遮挡时。
An example of such a case would be when a control was partially obscured by another control or form in the user interface.
简单的日历控件拖动到窗体上,你应该有一个日历显示在窗体上!
Simply drag the calendar control onto your form and you should have a calendar appear on your form!
控件可复制到同一窗体、项目内的另一个窗体或剪贴板上,以便在其他解决方案中使用。
A control may be copied onto the same form, onto another form within the project, or onto the Clipboard for use in other solutions.
如果该按钮是窗体的“取消”按钮,那么即使另一个控件具有焦点,按esc也将选择该按钮。
If the button is the "cancel" button of the form, pressing ESC chooses the button, even if another control has the focus.
这是一个制作不规则窗体的控件,非常好用,电脑报曾经推荐过。
This is a production of irregular forms of control, very convenient, reportedly had recommended the computer off.
有时需要提供一个在控件上操作的命令,而该控件在当前活动的子窗体上具有焦点。
On occasion, you will want to provide a command that operates on the control that has focus on the currently active child form.
一个无窗体的用户界面并不使用原始的Win32控件。
A free form user interface does not use the original Win32 controls.
一个无窗体的用户界面并不使用原始的Win32控件。
A free form user interface does not use the original Win32 controls.
应用推荐