You are creating a multiple-document interface (MDI) application by using the .NET Framework 3.5.
You configure the frmParent form to be an MDI parent. You write the following code segment. (Line numbers are included for reference only.)
01 Form frmChild = new Form();
02 Form frmParent = this;
03
You need to associate and display the frmChild form and the frmParent form. Which code segment should you add at line 03
You are creating a Windows Forms application for a courier company by using the .NET Framework 3.5.
You create a form that allows customers to track the progress of their shipments. The form contains the following elements:
A text box named txtTN that allows users to enter a tracking number
An ErrorProvider control named ErrorProvider1 that informs users of an invalid tracking number
A function named ValidTrackingNumber that validates tracking numbers
You need to ensure that the txtTN text box is validated. Which code segment should you use
You are creating a Windows application by using the .NET Framework 3.5.
You create an instance of the BackgroundWorker component named backgroundWorker1 to asynchronously process time-consuming reports in the application. You write the following code segment in the application.
(Line numbers are included for reference only.)
01 private void backgroundWorker1_RunWorkerCompleted(object sender,
RunWorkerCompletedEventArgs e)
02 {
03
04 }
You need to write a code segment that reports to the application when the background process detects any of the following actions:
An exception is thrown.
The process is cancelled.
The process is successfully completed.
Which code segment should you insert at line 03
You are creating a Windows Forms application by using the .NET Framework 3.5. The application requires a thread that accepts a single integer parameter.
You write the following code segment. (Line numbers are included for reference only.)
01 Thread myThread = new Thread(new ParameterizedThreadStart(DoWork));
02 myThread.Start(100);
03 ...
You need to declare the method signature of the DoWork method. Which method signature should you use
You are creating a Windows application by using the .NET Framework 3.5.
You plan to create a form that might result in a time-consuming operation. You use the QueueUserWorkItem method and a Label control named lblResult. You need to update the users by using the lblResult control when
the process has completed the operation. Which code segment should you use
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
You are creating a Windows Forms application by using the .NET Framework 3.5. The application is used by a financial service provider.
You discover that the service provider transfers large amounts of data by using XML. You need to read and
validate the XML documents in the most time-efficient manner. Which technology should you use
You are creating a Windows Forms application by using the .NET Framework 3.5.
The application is configured to use role-based security. You need to ensure that users can print reports only by selecting a printer from the printer dialog box. You want to achieve this goal by using the minimum level of
permission. Which code segment should you use
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
You are creating a Windows Forms application for a financial service provider by using the .NET Framework 3.5.
You have to implement a multiple-document interface (MDI) in the application to allow users to open multiple financial documents simultaneously. You need to ensure that whenever the child MDI form is created, the
application displays a message in the title bar of the parent MDI that a child form has received focus. What should you do