What should you do to ensure that the control extends the TreeView control ?
You are creating a Windows Forms application by using the .NET Framework 3.5.
You plan to develop a new control for the application. You need to ensure that the control extends the TreeView control by adding a custom node tag and a highlight color.
What should you do?
What should you do to configure the BackgroundWorker component appropriately to prevent the application?
You are creating a Windows application by using the .NET Framework 3.5.
The Windows application has print functionality. You create an instance of a BackgroundWorker component named backgroundWorker1.
You discover that when the application attempts to cancel the background process, you receive a System.InvalidOperationException exception on the following code segment:
backgroundWorker1.CancelAsync();
You need to configure the BackgroundWorker component appropriately to prevent the application from generating exceptions.
What should you do?
What should you do to test the application in each language?
You are creating a Windows Forms application by using the .NET Framework 3.5.
You have resource files in five different languages. You need to test the application in each language.
What should you do?
What should you do to maintain the list of invoices from the last persisted state?
You are creating a Windows Forms application by using the .NET Framework 3.5.
Users use the application to process and approve invoices. A list of recently accessed invoices is stored in the users settings section of the App.config file.
You need to maintain the list of invoices from the last persisted state.
What should you do?
What should you do to ensure that the VSTO add-in is deployed appropriately?
You create Windows Forms applications by using the .NET Framework 3.5.
You plan to deploy a new Microsoft Visual Studio Tools for Office (VSTO) add-in for Microsoft Office Excel 2007.
The client computers have no other VSTO add-ins deployed. You need to ensure that the VSTO add-in is deployed appropriately.
What should you do?
What should you do to ensure that the following requirement?
You create Windows Forms applications by using the .NET Framework 3.5.
You plan to deploy a new application by using the ClickOnce technology.
During deployment, the application performs the following tasks:
* Modifies registry keysModifies the files located in the %PROGRAM FILES% folder Administrative permissions are not granted to users who install the application.
You need to ensure that the following requirements are met:
* The application can be deployed to Windows Vista client computers that are not part of an Active Directory domain.
* When the application is deployed, users are not prompted to elevate their permissions.
What should you do?
What should you do to improve the performance of the form?
You are creating a Windows Forms application by using the .NET Framework 3.5.
You create a new form in your application. You add 100 controls at run time in the Load event handler of the form.
Users report that the form takes a long time to get displayed. You need to improve the performance of the form.
What should you do?
What should you do to ensure that the following requirements ?
You are creating a Windows Forms application by using the .NET Framework 3.5.
You create a new form in your application. You add a PrintDocument control named pntDoc to the form.
To support the print functionality, you write the following code segment in the application. (Line numbers are included for reference only.)
01 pntDoc.BeginPrint += new PrintEventHandler(PrintDoc_BeginPrint);
02 …
03 bool canPrint = CheckPrintAccessControl();
04 if (!canPrint) {
05
06 }
07
You need to ensure that the following requirements are met:
* When the user has no print access, font and file stream initializations are not executed and the print operation is cancelled.
* Print operations are logged whether or not the user has print access.
What should you do?
What should you do to ensure that the application completes the upload efficiently?
You are creating a Windows component by using the .NET Framework 3.5.
The component will be used in Microsoft Word 2007 by using a ribbon button.
The component uploads large files to a network file share. You find that Word 2007 becomes non-responsive during the upload.
You plan to create your own thread to execute the upload. You need to ensure that the application completes the upload efficiently.
What should you do?
Which two actions should you perform?
You are creating a Windows Forms application by using the .NET Framework 3.5.
The application is used to print employee records. You plan to create a customized Print Preview dialog box in the application.
You need to ensure that users can preview their documents before printing.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)