单项选择题
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:
(1)A text box named txtTN that allows users to enter a tracking number
(2)An ErrorProvider control named ErrorProvider1 that informs users of an invalid tracking number
(3)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?()
A.A
B.B
C.C
D.D
相关考题
-
单项选择题
You are creating a Windows Forms application by using the .NET Framework 3.5. You use LINQ expressions to read a list of customers from the following XML file. You need to obtain a list of names of customers who are 21 years of age or older. Which code segment should you use?()
A.A
B.B
C.C
D.D -
单项选择题
YouarecreatingaWindowsFormsapplicationbyusingthe.NETFramework3.5.Theapplicationstoresalistofpartnumbersinanintegerbasedarrayasshowninthefollowingcodesegment(Linenumbersareincludedforreferenceonly) YouneedtouseaLINQtoObjectsquerytoperformthefollowingtasks:-Obtainalistofduplicatepartnumbers: (1)Orderthelistbypartnumbers (2)Providethepartnumbersandthetotalcountofpartnumbersintheresults Whichcodesegmentshouldyouinsert?()
A.A
B.B
C.C
D.D -
单项选择题
You are creating a Windows Forms application by using the .NET Framework 3.5. You have implemented the PrintPage event to send the page output to the printer.The users must select the printer and the page range before printing. You need to ensure that users can print the content of the form by clicking the button control. Which code segment should you use?()
A.A
B.B
C.C
D.D
