TAILIEUCHUNG - vb.net book phần 6

Loại bỏ một biểu mẫu từ danh sách các hình thức sở hữu. Ngoài ra bộ các chủ sở hữu theo hình thức loại bỏ một tham chiếu null (Không có gì Visual Basic). Đặt lại màu sắc trở lại được dựa trên màu sắc trở lại của cha mẹ. | Windows Forms Components and Controls Chapter 8 363 The user presses Enter when the button is the accept button of the form. The user presses Esc when the button is the cancel button of the form. The user presses the access key Alt 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 Button 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 when that other control is another button or a multiline text box. This basically makes it the default button on the you designate a Button control to be the cancel button on the form the button is clicked when the user presses Esc even if another control has the focus. A button can be both the accept button and the cancel button on the form. The following code shows you how to do this With frmForm Designate btnButton as the accept button and the cancel button of frmForm Set the AcceptButton property to btnButton .AcceptButton btnButton Set the CancelButton property to btnButton .CancelButton btnButton End With Note_ If the action represented by a Button control requires additional information such as the folder in which to save a document include an ellipsis . in the button s Caption property. 364 Chapter 8 Windows Forms Components and Controls CheckBox Control The Windows Forms CheckBox control indicates True False or Yes No options. The 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 or Yes No selection to the can group multiple check boxes using a GroupBox control to display .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.