70-505 TS Braindump
ExamSoon 70-505 Exams
Microsoft TS: Microsoft .NET Framework 3.5,Windows Forms Application
Development
O rder : 70-505 Exam
Practice Exam: 70-505
Exam Number/Code: 70-505
Exam Name: TS: Microsoft .NET Framework 3.5,Windows Forms Application
Development
Questions and Answers: 92 Q&As
Free 70-505 Braindumps
Exam : Microsoft 70-505
Title : TS: Microsoft .NET Framework 3.5, Windows Forms Application Development
1. 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 AddHandler pntDoc.BeginPrint, _AddressOf PrintDoc_BeginPrint
02 ...
03 Dim canPrint As Boolean = CheckPrintAccessControl()
04 If canPrint = False Then
05
06 End If
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
A. Add the following code segment at line 05.
RemoveHandler pntDoc.BeginPrint, AddressOf PrintDoc_BeginPrint
AddHandler pntDoc.BeginPrint, _
Function(obj1, args1) args1.Cancel = True
Add the following code segment at line 07.
AddHandler pntDoc.BeginPrint, AddressOf
LogPrintOperation
B. Add the following code segment at line 05.
AddHandler pntDoc.BeginPrint, AddressOf EmptyEventHandler
Add the following code segment at line 07.
RemoveHandler pntDoc.BeginPrint, AddressOf PrintDoc_BeginPrint
AddHandler pntDoc.BeginPrint, AddressOf
LogPrintOperation
C. Add the following code segment at line 05.
RemoveHandler pntDoc.BeginPrint, AddressOf PrintDoc_BeginPrint
RemoveHandler pntDoc.BeginPrint, AddressOf EmptyEventHandler
Add the following code segment at line 07.
RemoveHandler pntDoc.BeginPrint, AddressOf
LogPrintOperati