PrepAway - Latest Free Exam Questions & Answers

Author: admin

What should you do to configure the form so that it takes the shape of the bitmap file without the background?

You are creating a shaped Windows Form. The shape and background for the form are available in a bitmap file named Background.bmp. The FormBorderStyle property is set to None and the BackgroundImage property is set to background.bmp. However, when the application runs, the entire image including all of the background is visible and the form still appears to be rectangular. You need to configure the form so that it takes the shape of the bitmap file without the background. What should you do?

What should you do to ensure that the read-only properties are not displayed in the Properties window?

You are creating a Windows Forms application. Your application uses a custom control. The Custom control is based on a standard button control. You add several extra properties to the control. Some of these properties are read-only. You need to ensure that the read-only properties are not displayed in the Properties window of the design environment. What should you do?

What should you do to test the application by using the resources contained in the satellite assembly?

Windows Forms application includes resources that are localized for several languages. You want to view your application when a users resources that are localized for the French language as spoken in France. This culture is denoted by the culture name fr-FR. You need to test the application by using the resources contained in the satellite assembly. You must not modify the regional settings of your computer. What should you do?

What should you do to step by step specify security to make sure that applications…?

You were given instructions to develop a print driver license. The component that you will use should grant permission to access all the printers that are connected to the client computers. What should you do to step by step specify security to make sure that applications cannot use your component unless they are granted an unrestricted printing permission?

What must you do to allow a page to be displayed, when running the application?

The following code was added to add a PrintPreviewControl instance to a Panel control named testpanel.

PrintPreviewControl printPreview = new PrintPreviewControl[]; printPreview.Columns = 2;
printPreview.Rows = 2;
printPreview.Dock = DockStyle.Fill;
testpanel.Controls.Add[printPreview];

When you run the application that has this code, you received the following message on the Panel control. Document does not contain any pages. What must you do to allow a page to be displayed, when running the application?