What are two possible ways to achieve this goal?

You create a new custom control by extending a standard TextBox control. You need to replace the default icon for the control with your own custom icon. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

You create a new custom control by extending a standard TextBox control. You need to replace the default icon for the control with your own custom icon. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

A.
Add the bitmap file that contains the custom icon to the custom control project.
Set it’s BuildAction property to Compile in the properties window.

B.
Add the bitmap file that contains the custom icon to the custom control project.
Decorate the control class with the ToolboxBitmap attribute, and specify the location of the bitmap file for the icon.

C.
Add the bitmap file that contains the custom icon to the custom control project.
Give the bitmap file the same name as your control class, and use the .bmp or .ico file name extention.
Set it’s BuildAction property to EmbeddedResource in the Properties window.

D.
Add the bitmap file that contains the custom icon to the custom control project.
Give the bitmap file the same name as your control class, and use the .bmp or .ico file name extention.
Set the Copy to Output Directory property of the bitmap to Copy always.



Leave a Reply 0

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