单选题You are developing a Windows Forms application that contains a DataGridView control. The DataGridView capture the customer's name, address, and phone number. You have been asked to provide data validation in a DataGridView to prevent users from leaving the.. You need to ensure that users cannot tab out of the name field without entering data What should you do ?()AValidate the name field in the CellValidating event. Set e.Cancel = true if the name field isBValidate the name field in the CellErrorTextChanged event. Get e.RowIndex if the name field ..CValidate the name field in the CellEnter event. Set the focus on the name field if the name ...DValidate the name field in the CancelRowEdit event. Set the focus on the name field if the name ...

单选题
You are developing a Windows Forms application that contains a DataGridView control. The DataGridView capture the customer's name, address, and phone number. You have been asked to provide data validation in a DataGridView to prevent users from leaving the.. You need to ensure that users cannot tab out of the name field without entering data What should you do ?()
A

 Validate the name field in the CellValidating event. Set e.Cancel = true if the name field is

B

 Validate the name field in the CellErrorTextChanged event. Get e.RowIndex if the name field ..

C

 Validate the name field in the CellEnter event. Set the focus on the name field if the name ...

D

 Validate the name field in the CancelRowEdit event. Set the focus on the name field if the name ...


参考解析

解析: 暂无解析

相关考题:

You use Microsoft .NET Framework 4 to create a Windows Forms client application.You write the following code segment.The application contains a form of type Form1 that contains a FormSettings object named frmSettings1.You need to maintain the user‘s form size preference each time the user executes the application.Which code segment should you use? ()A.B.C.D.

You are developing an application that performs file backups in the background. The background application will host a Windows Communication Foundation (WCF) service and must be active as soon as the machine is running. The background application will not have a user interface. A front-end application will consume the WCF service and will provide the user interface.You need to choose a host environment for the WCF service.Which hosting environment should you choose? ()A. Microsoft Internet Information Services (IIS) 6.0B. Windows Process Activation Services (WAS)C. A Windows Forms applicationD. A Windows Service

You are developing a client application that consumes a Windows Communication Foundation (WCF) service.The operation contract is as follows.[OperationContract][FaultContract(typeof(SalesFault))]string GetSales(string saleId);()The service configuration file contains the following line in the serviceBehaviors section.A divide-by-zero exception is not being handled by the service.You need to ensure that the exception is caught in the client application.Which type of exception should the client catch?()A. TimeoutExceptionB. FaultExceptionC. DivideByZeroExceptionD. FaultExceptionSalesFault

You are developing a Windows Communication Foundation (WCF) service that is hosted by a Windows Forms Application.The ServiceHost instance is created in the Form Constructor.You need to ensure that the service is not blocked while the UI thread is busy.What should you do?()A. Decorate the service implementation class with the following line of code [ServiceBehavior(UseSyncronizationContext = false)]B. Decorate the service implementation class with the following line of code [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]C. Call the Invoke method of the form and supply a delegate.D. Call the BeginInvoke method of the form and supply a delegate.

You install a custom application on a computer that runs Microsoft Windows XP. The application stores each user’s data in the %programfiles%\app1\data folder on the computer. You install the custom application on a computer that runs Windows Vista.On the Windows Vista computer, you back up the %programfiles%\app1\data folder and notice that the backup contains no data.You need to back up the application’s user data on the Windows Vista computer.What should you do?()A.AB.BC.CD.D

You are developing a Windows Presentation Foundation (WPF) application that displays opportunities from ListT.. class named Lead. The Lead class contains the properties Title and Revenue.You add a DataGrid control named dgQualifiedLeads to the MainWindow.xaml file. You set the ItemsSource property to Leads as follows.You need to ensure that CollectionViewSource is used to filter the list to display only Lead objects with revenue ...What should you do ?()A.B.C.D.

You are developing a Windows Presentation Foundation (WPF) application for a travel reservation systemYou need to ensure that users can select a range of travel dates.What should you do ?() A. Add single DatePicker control to the design surfaceB. Add single Calendar control to the design surfaceC. Add single MediaElement control to the design surface to display a calendarD. Add the appropriate Windows Forms references to the project references. Add a single Windows Forms DateTimePicker control to the design surface

You are developing a Windows Communication Foundation (WCF) service that is hosted by a Windows Forms Application.The ServiceHost instance is created in the Form Constructor.You need to ensure that the service is not blocked while the UI thread is busy. What should you do?()A、Decorate the service implementation class with the following line of code [ServiceBehavior(UseSyncronizationContext = false)]B、Decorate the service implementation class with the following line of code [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]C、Call the Invoke method of the form and supply a delegate.D、Call the BeginInvoke method of the form and supply a delegate.

You are developing a Windows Forms Application by using the .NET Framework 3.5.You plan to design a composite custom control for the application. You include a ListBox control has a property that provides the item count of  the ListBox control. You need to ensure that the property cannot be accessed at design time. Which attribute should you use?()A、[Bindable(false)]B、[DesignOnly(false)]C、[EditorBrowsable(EditorBrowsableState.Never)]D、[Browsable(false)]

You are developing a Windows Forms Application by using the .NET Framework 3.5.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?()A、Add a PrintPreviewDialog control to the form.B、Add a PrintPreviewControl control to the form.C、Create and initialize a PrintDocument object on the form and then implement the PrintPage event handler.D、Create and initialize a PrintDocument object on the form and then implement the BeginPrint event handler.E、Set the Document property of the PrintPreviewDialog control to the PrintDocument instance that must be printed.

You are developing a Windows Presentation Foundation (WPF) application for a travel reservation system You need to ensure that users can select a range of travel dates. What should you do ?()A、Add single DatePicker control to the design surfaceB、Add single Calendar control to the design surfaceC、Add single MediaElement control to the design surface to display a calendarD、Add the appropriate Windows Forms references to the project references. Add a single Windows Forms DateTimePicker control to the design surface

You are developing a Windows Forms application that contains a DataGridView control. The DataGridView capture the customer's name, address, and phone number. You have been asked to provide data validation in a DataGridView to prevent users from leaving the.. You need to ensure that users cannot tab out of the name field without entering data What should you do ?()A、Validate the name field in the CellValidating event. Set e.Cancel = true if the name field isB、Validate the name field in the CellErrorTextChanged event. Get e.RowIndex if the name field ..C、Validate the name field in the CellEnter event. Set the focus on the name field if the name ...D、Validate the name field in the CancelRowEdit event. Set the focus on the name field if the name ...

You are developing a Windows Presentation Foundation (WPF) application. You need to use XAML to create a custom control that contains two Button controls. From which base class should you inherit? ()A、FrameworkElementB、UIElementC、UserControlD、Button

单选题You are developing an application that performs file backups in the background. The background application will host a Windows Communication Foundation (WCF) service and must be active as soon as the machine is running. The background application will not have a user interface. A front-end application will consume the WCF service and will provide the user interface.You need to choose a host environment for the WCF service. Which hosting environment should you choose? ()AMicrosoft Internet Information Services (IIS) 6.0BWindows Process Activation Services (WAS)CA Windows Forms applicationDA Windows Service

单选题You create a package that contains PL/SQL variables that must be shared among several forms in the Travel application. You place the package in a library and attach the library to all the forms that need to share the data. Which parameter in the OPEN_FORM built-in must you set to ensure that changes made by one form are visible to the other forms in the application?()Adata_mode Bparamlist Cquery_mode Dsession_mode

单选题You create Windows Forms applications by using the .NET Framework 3.5. You plan to use a setup project to deploy a new Windows Forms application.The application uses a component that requires the Microsoft NET Framework 1.1.You need to create a launch condition so that the application can be deployed on client computers.   What should you do?()AUse the Depth property.BUse the Version property.CUse the MinVersion property.DUse the ComponentID property.

单选题You are developing a Windows Presentation Foundation (WPF) application. You configure PresentationTraceSource to track errors in a bound TextBox control in the application. You need to choose the window that the Trace information is sent to Which Visual Studio window should you select ?()AAutosBImmediateCLocalsDOutput

单选题You are developing a Windows Forms Application by using the .NET Framework 3.5.You plan to design a composite custom control for the application. You include a ListBox control has a property that provides the item count of  the ListBox control. You need to ensure that the property cannot be accessed at design time. Which attribute should you use?()A[Bindable(false)]B[DesignOnly(false)]C[EditorBrowsable(EditorBrowsableState.Never)]D[Browsable(false)]

单选题You are creating a new form for the Order Entry application. You define a record group that will be created when the form is executing this built in: CREATE_GROUP(rg_emplist, global_scope) Which form(s) in the application will have access to this record group?()AAll forms in the application. BAny forms opened by the user who initiated the record group. COnly the form issuing the CREATE_GROUP built-in. DAny forms referenced by the form that contains the procedure.

多选题You are developing a Windows Forms Application by using the .NET Framework 3.5.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?()AAdd a PrintPreviewDialog control to the form.BAdd a PrintPreviewControl control to the form.CCreate and initialize a PrintDocument object on the form and then implement the PrintPage event handler.DCreate and initialize a PrintDocument object on the form and then implement the BeginPrint event handler.ESet the Document property of the PrintPreviewDialog control to the PrintDocument instance that must be printed.

单选题You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to create a Windows Installer package for a Windows Forms application. The package will be deployed on Windows Vista computers.You need to ensure that during deployment the installation does not elevate privileges of the user installing the application.What should you do?()ACreate a custom action and set the NoImpersonate property to trueBCreate a custom action and set the NoImpersonate property to falseCCreate a manifest and set the RequestedExecutionLevel level attribute to AsInvokerDCreate a manifest and set the RequestedExecutionLevel level attribute to AsAdministrator

单选题You are developing a Windows Presentation Foundation (WPF) application. The application contains stylized body text and heading text. The heading text is a slight variation of the body text. You need to ensure that if the body text changes, the heading text automatically inherits those changes. What should you do ?()ASet the Value property of the style setter to point to a static resourceBSet the BasedOn property of the heading style to point to a static resource for the body text styleCSet the Key property of the heading style to start with the name of the body text styleDSet the TargetType property of the heading style to TextBlock

单选题You work as the application developer at Certkiller .com. Certkiller .com uses Visual Studio.NET 2005 as its application development platform. You are developing a Windows Service application which contains three different Windows services. You are required to only set one Windows service to start automatically when the system is restarted. What should you do?()AUse the ServiceController class.BUse the ServiceBase class.CUse the ServiceProcessInstaller class.DUse the ServiceInstaller class.

单选题You are developing a Windows Presentation Foundation (WPF) application. You are implementing a test strategy for the application. You need to ensure that the test class can repeat user input. From which base class should the test class inherit?()AAutomationElementIdentifierBAutomationPeerCKeyboardDUICues

单选题You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to create a Windows Installer package for a Windows Forms application.The package will be deployed on Windows Vista computers.You need to ensure that during deployment the installation does not elevate privileges of the user installing the application.What should you do?()ACreate a custom action and set the NoImpersonate property to trueBCreate a custom action and set the NoImpersonate property to falseCCreate a manifest and set the RequestedExecutionLevel level attribute to AsInvoker.DCreate a manifest and set the RequestedExecutionLevel level attribute to AsAdministrator.

单选题You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to design a control for the application.You need to ensure that the control meets the following requirements:    (1)Contains the DataGridView, BindingSource, and BindingNavigator controls.  (2)Exposes the properties of the BindingSource control.   (3)Protects the properties of the DataGridView and BindingNavigator controls.    What sholud you do?()AExtend the Control class.BExtend the ContainerControl class.CCreate protected accesses for each control property.DCreate public accesses for the properties of the BindingSource control.

单选题You are developing a client application that consumes a Windows Communication Foundation (WCF) service. The operation contract is as follows. [OperationContract] [FaultContract(typeof(SalesFault))] string GetSales(string saleId);() The service configuration file contains the following line in the serviceBehaviors section. A divide-by-zero exception is not being handled by the service. You need to ensure that the exception is caught in the client application. Which type of exception should the client catch?()ATimeoutExceptionBFaultExceptionCDivideByZeroExceptionDFaultExceptionSalesFault

单选题You are developing the Payroll application that contains the SALARY and COMMISSION forms. When a user invoked the COMMISSION form from the SALARY form, the SAL value should be passed to the COMMISSION form. In which data form and at what time should you define the parameter to accept the value?()ASALARY form at runtime. BSALARY form at design time. CCOMMISSION form at runtime. DCOMMISSION form at design time.