What should you do to make sure that portions of the control are automatically repainted…

You are working as an application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. Domain.com uses Visual Studio 2005 as an application platform. Domain.com consists of a Development department.
You as the developer of Domain.com use a client computer named Certkiller -WS005 as developing collateral.
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?

You are working as an application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. Domain.com uses Visual Studio 2005 as an application platform. Domain.com consists of a Development department.
You as the developer of Domain.com use a client computer named Certkiller -WS005 as developing collateral.
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.



Leave a Reply 0

Your email address will not be published. Required fields are marked *