vb.net book phần 6
➤ Gửi thông báo lỗi ⚠️ Báo cáo tài liệu vi phạmNội dung chi tiết: vb.net book phần 6
vb.net book phần 6
Windows Forms Components and Controls* Chapter 8363■The user presses Enter when the button is the “accept” button of the form.■The user presses Esc wh vb.net book phần 6 hen the button is the “cancel” button of the form.■The user presses the access key (Alt 4- the underlined letter) for the button.In addition, you can click the Button control programmatically in the following ways:• Invoke the button's Click event.■Call the PerformClick method.When you designate a B vb.net book phần 6 utton control to be the accept button on the form, the button is clicked when the user presses Enter, even if another control has the focus—except whevb.net book phần 6
n that other control is another button or a multiline text box. This basically makes it the default button on the form. When you designate a Button coWindows Forms Components and Controls* Chapter 8363■The user presses Enter when the button is the “accept” button of the form.■The user presses Esc wh vb.net book phần 6 h the accept button cĩtìíỉ the cancel button on the form.The following code shows you how to do this:With frmForm'Designate btr.Button as the accept button and the'cancel button of frmForm'Set the AcceptButton property to btr.Button.AcceptButton btnButton'Set the CancelButton property to btr.Button vb.net book phần 6 .CancelButton btnButtonEnd WithNote____________________________________________________________________If the action represented by a Button controlvb.net book phần 6
requires additional information, such as the folder in which to save a document, include an ellipsis (...) in the button's Caption property.www.syngreWindows Forms Components and Controls* Chapter 8363■The user presses Enter when the button is the “accept” button of the form.■The user presses Esc wh vb.net book phần 6 he Checkbox control appears as a square box with an accompanying label. When a choice is set, a check mark appears in the box. When the choice is not set, the box is empty. Use the Checkbox control to present an independent or non-exclusive choice, a True/False orYes/No selection to the user. You ca vb.net book phần 6 n group multiple check boxes using a Groupbox control to display multiple choices from which the user may select more than one.The Checkbox control havb.net book phần 6
s two important properties: Checked and CheckedState. The Checked property returns either True or False, and indicates whether the choice is set. The Windows Forms Components and Controls* Chapter 8363■The user presses Enter when the button is the “accept” button of the form.■The user presses Esc wh vb.net book phần 6 ty is set to True, the CheckedState property also returns CheckState.Indeterminate, used when the choice is set for some but not all elements of the selection.Since grouped controls can be moved around together on the form designer, group multiple boxes using the Groupbox control to enhance visual a vb.net book phần 6 ppearance and aid in GUI design Table 8.7 shows the properties of the Checkbox control.Table 8.7 CheckBox PropertiesPropertyDescriptionAllowDropDetermvb.net book phần 6
ines if the check box will receive drag-drop notificationsAppearanceControls the appearance of the check boxAutoCheckCauses the check box to automaticWindows Forms Components and Controls* Chapter 8363■The user presses Enter when the button is the “accept” button of the form.■The user presses Esc wh vb.net book phần 6 for the check boxCheckAlignDetermines the location of the check box inside the controlCheckedIndicates whether the check box is checked or uncheckedCursorThe cursor that appears when the mouse passes over the check boxFlatstyleDetermines the display of the check box when users move the mouse over t vb.net book phần 6 he check box and clickContinuedwww.syngress.comWindows Forms Components and Controls* Chapter 8363■The user presses Enter when the button is the “accept” button of the form.■The user presses Esc whWindows Forms Components and Controls* Chapter 8363■The user presses Enter when the button is the “accept” button of the form.■The user presses Esc whGọi ngay
Chat zalo
Facebook