You are creating a Windows Forms application by using the .NET Framework 3.5
The application requires a form to display a clock.
You need to create a circular form to display the clock.
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 the application.
You add a ContextMenuStrip control named ctxMenu to the form.
You have a user defined class named CustomControl.
You write the following code segment in the application (Line numbers are included for reference only )
01 CustomControl myControl = new CustomControl()
02
You need to ensure that an instance of CustomControl is displayed on the form as a toplevel item of the ctxMenu control.
Which code segment should you add at line 02?
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 SplitContainer control named spcFrame to the form.
The SplitContainer control has two SplitterPanel controls named Panel1 and Panel2.
You are configuring the SplitContainer control to define the layout of the form.
You need to ensure that the following requirements are met:
- The initial distance from the left edge of the spcFrame splitter is set to 200 pixels
- The size of the Panel2 SplitterPanel remains unchanged when the form is resized
Which code segment should you use ?
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 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 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?
You are creating a Windows Forms application by using the .NET Framework 3.5.
You plan to modify a list of orders within a DataGridView control in the application.
You need to ensure that a value is required in the first column of the grid control.
Which code segment should you use ?
You are creating a Windows Forms application by using the .NET Framework 3.5.
You write a code segment to connect to a Microsoft Access database and populate a DataSet.
You need to ensure that the application meets the following requirements:
- It displays all database exceptions.
- It logs all other exceptions by using the LogExceptionToFile
Which code segment should you use ?
You are creating a Windows Forms application by using the .NET Framework 3.5.
You need to populate a list box control along with category names by using a DataReader control.
Which code segment should you use ?
You are creating a Windows Forms application for inventory management by using the .NET Framework 3.5.
The application provides a form that allows users to maintain stock balances.
The form has the following features:
- A dataset named dsStockBalance to store the stock information
- A business component named scInventory.
The scInventory component provides a method named Save.
You need to ensure that only the modified stock balances of dsStockBalance are passed to the scInventory
Save method.
Which code segment should you use ?