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 creating an extended control deriving class from Button. What should you do to render your control with an oval shape which must prevent other control from modifying the rendering behavior of your control?
A.
You should override the OnPaint method and call the base implementation and render the control.
B.
You should override the OnPaintBackground method and render the control but not call the base implementation.
C.
You should override the OnPaint method and render the control but not call the base implementation.
D.
You should override the OnPaintBackground method and call the base implementation and render the control.
Explanation:
The UserPaint method is used whenever regions of a control are invalidated. The base OnPaint method raise the Paint event.Incorrect Answers:
A: You should not call the OnPaint method. This would raise the OnPaint method. B, D: You should not override the OnPaintBackground method.