Microsoft Exam Questions

What should you do to make sure that portions of the control are automatically repainted when a spec

You are busy developing a custom control from a class from Control, which is not a composite control and performs all of its rendering by using GD+. What should you do to make sure that portions of the control are automatically repainted when a specific property changes?

A.
You should call the Onpaint method.

B.
You should call the Invalidate method.

C.
You should call the Update method.

D.
You should call the Refresh method.

Explanation:
This method is overloaded to define the portions of a control that is about to be repainted.

Incorrect Answers:
A: The Invalidate method calls the Onpaint method.
C: The Update method does not allow you to specify the potions of the control that must be prepared.
D: The Refresh method does not allow you to specify the potions of the control that must be prepared.