Microsoft
98-361 · Question #299
You are updating an existing Windows Forms application. The form hosts a DateTimePicker control named dateTimePicker1. You need to write code that executes when the value of the dateTimePicker1…
The correct answer is A. dateTimePicker1.ValueChanged +=. See the full explanation below for the reasoning.
Question
You are updating an existing Windows Forms application. The form hosts a DateTimePicker control named dateTimePicker1. You need to write code that executes when the value of the dateTimePicker1 control is changed. You write a method, ProcessValueChanged, that contains the code you want to execute. What code should you write to invoke the ProcessValueChanged method? Any code that your write must not affect existing functionality of the application.
Options
- AdateTimePicker1.ValueChanged +=
- BdateTimePicker1.ValueChanged =
- CdateTimePicker1.Value += new
- DdateTimePicker1.Value = new
How the community answered
(26 responses)- A85% (22)
- B4% (1)
- C4% (1)
- D8% (2)
Community Discussion
No community discussion yet for this question.