For the simple example, you use a button control.
对于简单的示例,使用一个按钮控件。
With design mode turned off, click the button control.
关闭设计模式时,单击按钮控件。
When the button control is clicked, a message displays as shown in figure 12.
单击按钮控件后,将会显示一个消息,如图12所示。
The most common way to do this is via the button control. There are several styles of buttons.
最常见的做法是使用按钮控件。
Notice now that when the mouse is over the button control, the text you added to the Help text is displayed.
注意,现在当鼠标置于按钮控件上方时,将会显示添加到Help文本中的文字。
Creates a radio button control.
创建单选钮控件。
The button control is used to display a push button.
按钮控件可用来显示按钮。
Demonstrates creating a simple inherited button control.
演示如何创建一个简单的继承按钮控件。
Draws a button control in the specified state and bounds.
在指定的状态和范围中绘制按钮控制项。
The Region button OCX is a non rectangular button control.
这个区域按钮ocx不是一个矩形的按钮控件。
Draws a button control in the specified state and bounds, and with an optional focus rectangle.
在指定边界内使用一个可选焦点矩形绘制指定状态的按钮控件。
In this procedure you display text on a custom button control at design time, but not at run time.
在本过程中,您在设计时在自定义按钮控件上显示文本,而不在运行时显示文本。
Draws a button control in the specified state, on the specified graphics surface, and within the specified bounds.
在指定的边界内、指定的图形表面上,绘制处于指定状态的按钮控件。
Draws a button control in the specified state and bounds, with the specified text, and with an optional focus rectangle.
在指定边界内使用指定文本和一个可选焦点矩形绘制指定状态的按钮控制项。
Draws a button control in the specified state and bounds, with the specified image, and with an optional focus rectangle.
在指定边界内使用指定图像和一个可选焦点矩形绘制指定状态的按钮控制项。
Draws a button control in the specified state and bounds, with the specified text, and with an optional focus rectangle.
在指定边界内使用指定文本和一个可选焦点矩形绘制指定状态的按钮控件。
Draws a radio button control in the specified state, on the specified graphics surface, and within the specified bounds.
在指定边界内、指定的图形表面上,绘制处于指定状态的单选按钮控件。
You have mastered the basics, so let's look at a practical example that combines a push button control with a more complex macro.
您已经掌握了基础技能,因此,让我们看看一个实际示例,结合一个push按钮控件和一个更为复杂的宏。
All that is left to do now is to position or size the button control as you want and then turn off design mode to test the control.
现在只需要对按钮控件进行定位或者修改尺寸(按照您的意愿),然后关闭设计模式以测试控件。
Gets or sets the name for the group of controls for which the button control causes validation when it posts back to the server.
获取或设置按钮控件回发到服务器时所导致验证的控件组的名称。
Draws a button control in the specified state and bounds, with the specified text and image, and with an optional focus rectangle.
在指定边界内使用指定文本、图像和一个可选焦点矩形绘制指定状态的按钮控件。
Draws a button control in the specified state and bounds, with the specified text and text formatting, and with an optional focus rectangle.
在指定边界内使用指定文本、文本格式和一个可选焦点矩形绘制指定状态的按钮控制项。
After simulating the actions of a user entering colors for the textbox and combobox controls, the automation simulates clicking of the button control.
模拟用户在文本框和Combobox控件中键入颜色的操作之后,自动化会模拟点击按钮控件。
Draws a button control in the specified state and bounds; with the specified text, text formatting, and image; and with an optional focus rectangle.
在指定边界内使用指定文本、文本格式、图像和一个可选焦点矩形绘制指定状态的按钮控件。
You'd have to enter some inputs, click the button control, visually verify the result message, and record the result into an Excel spreadsheet or other data store.
您必须键入一些输入,单击按钮控件,直观验证结果消息,并将结果记录到Excel电子表格或其他数据存储中。
For example, a common designer mistake is to draw a rectangle or some other static element to represent a button, instead of applying a style to a button control.
例如,常见的设计器错误是绘制矩形或某些其他静态元素来表示按钮,而不是向按钮控件应用样式。
Place a Button control below the edit boxes.
在编辑框下面放置一个Button控件。
Button control in Visual Basic looks and behaves like a push button.
控件在外观和行为上与下压按钮一样。
A Button control to send or attempt to send the actual mail message.
Button控件用于发送或者尝试发送目前的邮件消息。
Drag and drop a Button control to the XML code. It should then look like Figure 5.
将一个Button控件拖放到XML代码中,如图5所示。
应用推荐