移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

多选题

You use Microsoft .NET Framework 4 to create a Windows Forms application. You add a new class named Customer to the application. You select the Customer class to create a new object data source. You add the following components to a Windows Form: A BindingSource component named customerBindingSource that is data-bound to the Customer object data source. A set of TextBox controls to display and edit the Customer object properties. Each TextBox control is data-bound to a property of the customerBindingSource component. An ErrorProvider component named errorProvider that validates the input values for each TextBox control. You need to ensure that the input data for each TextBox control is automatically validated by using the ErrorProvider component. Which two actions should you perform?()

发布日期:2021-03-17

You use Microsoft .NET Framework 4 to create a Win...
A

Implement the validation rules inside the Validating event handler of each TextBox control by throwing an exception when the value is invalid.

B

Implement the validation rules inside the TextChanged event handler of each TextBox control by throwing an exception when the value is invalid.

C

Implement the validation rules inside the setter of each property of the Customer class by throwing an exception when the value is invalid.

D

Add the following code segment to the InitializeComponent method of the Windows Form.   this.errorProvider.DataSource = this.customerBindingSource;

E

Add the following code segment to the InitializeComponent method of the Windows Form.    this.errorProvider.DataSource = this.customerBindingSource.DataSource;    this.errorProvider.DataMember = this.customerBindingSource.DataMember;

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!

此试题出现在

微软认证考试

护理学专业知识

去刷题