![]() ![]() Gets or sets the accessible role of the control. Gets or sets the name of the control used by accessibility client applications. Gets or sets the description of the control used by accessibility client applications. Gets or sets the default action description of the control for use by accessibility client applications. Gets the AccessibleObject assigned to the control. Initializes a new instance of the Button class. ![]() For example, if a multiline TextBox or another button has focus, that control processes the ENTER key press instead of the accept button. If the control that has focus accepts and processes the ENTER key press, the Button does not process it. The FlatStyle property can also be set to FlatStyle.Popup, which appears flat until the mouse pointer passes over the button then the button takes on the standard Windows button appearance. For example, to make it appear flat for a Web look, set the FlatStyle property to FlatStyle.Flat. When you display a form using the ShowDialog method, you can use the DialogResult property of a button to specify the return value of ShowDialog. This gives the form the behavior of a dialog box. Set the AcceptButton or CancelButton property of a Form to allow users to click a button by pressing the ENTER or ESC keys even if the button does not have focus. ' Set the button to return a value of OK when clicked.Ī Button can be clicked by using the mouse, ENTER key, or SPACEBAR if the button has focus. Set the button to return a value of OK when clicked.īutton1->DialogResult = ::DialogResult::OK The following code example creates a Button, sets its DialogResult property to DialogResult.OK, and adds it to a Form. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |